routes: add extra handling for signin/signup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1106359a3e
commit
e7be74d1eb
@ -56,6 +56,14 @@ func (a *App) SetupRoutes() error {
|
||||
e.POST("/signup", handlers.SignupPost(a.db))
|
||||
e.GET("/home", handlers.Home(a.db), compress)
|
||||
|
||||
// handle weird attempts here.
|
||||
e.POST("/signin/*", func(c echo.Context) error {
|
||||
return c.NoContent(http.StatusNotFound)
|
||||
})
|
||||
e.POST("/signup/*", func(c echo.Context) error {
|
||||
return c.NoContent(http.StatusNotFound)
|
||||
})
|
||||
|
||||
e.GET("/manage/api-keys", handlers.ManageAPIKeys(), handlers.MiddlewareSession)
|
||||
e.GET("/manage/users", handlers.ManageUsers(), handlers.MiddlewareSession)
|
||||
e.GET("/manage/users/new", handlers.ManageUsers(), handlers.MiddlewareSession)
|
||||
|
Loading…
Reference in New Issue
Block a user