Skip to content

Commit

Permalink
fix method on create web page
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirari04 committed Apr 9, 2024
1 parent c6943c1 commit 2758a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func Api() {
protectedApi.GET("/servers", controllers.ListServers, middlewares.IsAdmin())

protectedApi.GET("/pages", controllers.ListWebPage, middlewares.IsAdmin())
protectedApi.GET("/page", controllers.CreateWebPage, middlewares.IsAdmin())
protectedApi.POST("/page", controllers.CreateWebPage, middlewares.IsAdmin())
protectedApi.PUT("/page", controllers.UpdateWebPage, middlewares.IsAdmin())
protectedApi.DELETE("/page", controllers.DeleteWebPage, middlewares.IsAdmin())

Expand Down

0 comments on commit 2758a93

Please sign in to comment.