diff --git a/app/routes.go b/app/routes.go index d5e7181..5bef3ea 100644 --- a/app/routes.go +++ b/app/routes.go @@ -65,7 +65,7 @@ func (a *App) SetupRoutes() error { e.POST("/manage/users/:id/update", handlers.UpdateUser(), handlers.MiddlewareSession) e.GET("/logout", handlers.Logout(), compress) - e.POST("/logout", handlers.Logout()) + e.POST("/logout", handlers.Logout(), handlers.MiddlewareSession) // administrative endpoints. e.GET("/admin/*", handlers.Admin())