Move dashboard to api
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user