Skip to content

Commit

Permalink
add cache middleware on router
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <avelinorun@gmail.com>
  • Loading branch information
avelino committed Dec 23, 2021
1 parent 02935ec commit b7ff984
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func GetRouter() *mux.Router {
router.PathPrefix("/").Handler(negroni.New(
middlewares.AccessControl(),
middlewares.AuthMiddleware(),
middlewares.CacheMiddleware(),
negroni.Wrap(crudRoutes),
))

Expand Down

0 comments on commit b7ff984

Please sign in to comment.