aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/routes.go')
-rw-r--r--server/routes.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/routes.go b/server/routes.go
index d564925..8aa849e 100644
--- a/server/routes.go
+++ b/server/routes.go
@@ -42,8 +42,8 @@ func getRoutes(cfg *config.Config, store *storage.Storage, feedHandler *feed.Han
))
uiHandler := core.NewHandler(store, router, templateEngine, translator, middleware.NewChain(
- middleware.NewSessionMiddleware(store, router).Handler,
- middleware.NewTokenMiddleware(store).Handler,
+ middleware.NewUserSessionMiddleware(store, router).Handler,
+ middleware.NewSessionMiddleware(store).Handler,
))
router.Handle("/fever/", feverHandler.Use(feverController.Handler))