1
0

Unified endpoint to update and add reply.

This commit is contained in:
Alexander Andreev 2023-02-06 02:41:30 +04:00
parent c9de5b9e18
commit fbededb796
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -69,8 +69,7 @@ func main() {
srv.DELETE("/guestbook/admin/entry/:id", hand.GuestbookAdminDeleteEntry) srv.DELETE("/guestbook/admin/entry/:id", hand.GuestbookAdminDeleteEntry)
srv.POST("/guestbook/admin/entry/:id", hand.GuestbookAdminUpdateEntry) srv.POST("/guestbook/admin/entry/:id", hand.GuestbookAdminUpdateEntry)
srv.DELETE("/guestbook/admin/reply/:id", hand.GuestbookAdminDeleteReply) srv.DELETE("/guestbook/admin/reply/:id", hand.GuestbookAdminDeleteReply)
srv.POST("/guestbook/admin/reply/:id", hand.GuestbookAdminUpdateReply) srv.POST("/guestbook/admin/reply/", hand.GuestbookAdminReply)
srv.POST("/guestbook/admin/reply/", hand.GuestbookAdminNewReply)
srv.GET("/robots.txt", hand.Robots) srv.GET("/robots.txt", hand.Robots)
srv.GET("/rss.xml", hand.RSS) srv.GET("/rss.xml", hand.RSS)