From 2758a9394515eccb749a22a3e89e0f4f1ca224f0 Mon Sep 17 00:00:00 2001 From: kirari04 Date: Tue, 9 Apr 2024 17:21:36 +0200 Subject: [PATCH] fix method on create web page --- routes/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())