Skip to content

Commit

Permalink
mapped server crud routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirari04 committed Jan 3, 2024
1 parent 5fa0ea6 commit 919b6cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routes/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func Api() {
protectedApi.Get("/account/settings", controllers.GetUserSettingsController)
protectedApi.Put("/account/settings", controllers.UpdateUserSettingsController)

protectedApi.Post("/server", middlewares.IsAdmin, controllers.CreateServer)
protectedApi.Get("/servers", middlewares.IsAdmin, controllers.ListServers)

protectedApi.Post("/webhook", controllers.CreateWebhook)
protectedApi.Put("/webhook", controllers.UpdateWebhook)
protectedApi.Delete("/webhook", controllers.DeleteWebhook)
Expand Down

0 comments on commit 919b6cf

Please sign in to comment.