Skip to content

Commit

Permalink
Chore: unecessary cache
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-0x29a committed Sep 20, 2024
1 parent 84687af commit 5257dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/entity.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EntityController {

private loadRoutes() {
this.router.get('/', ApiCache.middleware('5 minutes'), this.getAll)
this.router.get('/:id', ApiCache.middleware('2 minutes'), this.getById)
this.router.get('/:id', this.getById)
this.router.delete('/:id', Guard, this.delete)
this.router.put('/:id', Guard, this.update)
this.router.post('/', Guard, this.create)
Expand Down

0 comments on commit 5257dda

Please sign in to comment.