bugfix on /user route

main
nilo 2024-11-24 15:33:12 -03:00
parent 984c185a9c
commit 25d3e86d38
1 changed files with 1 additions and 1 deletions

View File

@ -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)