From fbededb796b5a836e6a9a38ffb6e4baa85b97014 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 6 Feb 2023 02:41:30 +0400 Subject: [PATCH] Unified endpoint to update and add reply. --- cmd/dwelling-home/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/dwelling-home/main.go b/cmd/dwelling-home/main.go index 1a0ca9d..13a4cb6 100644 --- a/cmd/dwelling-home/main.go +++ b/cmd/dwelling-home/main.go @@ -69,8 +69,7 @@ func main() { srv.DELETE("/guestbook/admin/entry/:id", hand.GuestbookAdminDeleteEntry) srv.POST("/guestbook/admin/entry/:id", hand.GuestbookAdminUpdateEntry) srv.DELETE("/guestbook/admin/reply/:id", hand.GuestbookAdminDeleteReply) - srv.POST("/guestbook/admin/reply/:id", hand.GuestbookAdminUpdateReply) - srv.POST("/guestbook/admin/reply/", hand.GuestbookAdminNewReply) + srv.POST("/guestbook/admin/reply/", hand.GuestbookAdminReply) srv.GET("/robots.txt", hand.Robots) srv.GET("/rss.xml", hand.RSS)