diff --git a/routes/api.go b/routes/api.go index 46591ef..9479fab 100755 --- a/routes/api.go +++ b/routes/api.go @@ -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())