Return forbidden status in API
This commit is contained in:
parent
bc78cab715
commit
99cf27b649
@ -73,7 +73,7 @@ func (h *Handler) Serve() {
|
||||
unauthenticated.POST("/register", h.registerPost)
|
||||
|
||||
authenticated := api.Group("")
|
||||
authenticated.Use(h.verifyLoginWithRedirect)
|
||||
authenticated.Use(h.verifyLoginWithForbidden)
|
||||
authenticated.GET("/dashboard", h.dashboard)
|
||||
|
||||
user := authenticated.Group("/user")
|
||||
|
Loading…
x
Reference in New Issue
Block a user