From 25d3e86d389260aff20b2d5a594d23b24950138d Mon Sep 17 00:00:00 2001 From: nilo Date: Sun, 24 Nov 2024 15:33:12 -0300 Subject: [PATCH] bugfix on /user route --- routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/routes.go b/routes/routes.go index 1d7db5e..03fe821 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -31,6 +31,7 @@ func Setup(app *fiber.App) { app.Post("/on_sub_start", controllers.OnSubStart) app.Get("/corporations", controllers.GetCorporation) + app.Get("/user", controllers.GetOwnUser) // Protected routes. Needs login before. protected := app.Group("/") @@ -40,7 +41,6 @@ func Setup(app *fiber.App) { protected.Get("servers", controllers.GetAllServers) protected.Post("server", controllers.AddServer) - protected.Get("user", controllers.GetOwnUser) protected.Get("users", controllers.GetAllUsers) protected.Get("users/:email", controllers.GetUserByEmail) protected.Post("user", controllers.AddUser)