Move dashboard to api

This commit is contained in:
2022-01-21 14:20:12 +00:00
parent 929db00a47
commit ddab5998bc
3 changed files with 14 additions and 2 deletions

View File

@ -49,7 +49,6 @@ func (h *Handler) Serve() {
withLogin := router.Group("")
withLogin.Use(h.verifyLoginWithRedirect)
withLogin.GET("/dashboard", h.dashboard)
withLogin.GET("/admin", h.admin)
withLogin.GET("/admin/clear-database", h.clearDatabase)
@ -75,6 +74,7 @@ func (h *Handler) Serve() {
authenticated := api.Group("")
authenticated.Use(h.verifyLoginWithRedirect)
authenticated.GET("/dashboard", h.dashboard)
user := authenticated.Group("/user")
user.GET("/logout", logout)