diff --git a/app/routes.go b/app/routes.go index 8108c12..62189b2 100644 --- a/app/routes.go +++ b/app/routes.go @@ -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)