1
0

Endpoints for guestbook admin panel.

This commit is contained in:
Alexander Andreev 2023-02-06 01:59:06 +04:00
parent 0015c733bd
commit 87ba488769
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -61,10 +61,21 @@ func main() {
srv.GET("/stuff/article/*filepath", hand.Article) srv.GET("/stuff/article/*filepath", hand.Article)
srv.GET("/mindflow", hand.Mindflow) srv.GET("/mindflow", hand.Mindflow)
srv.GET("/about", hand.About) srv.GET("/about", hand.About)
srv.GET("/guestbook", hand.Guestbook) srv.GET("/guestbook", hand.Guestbook)
srv.POST("/guestbook", hand.GuestbookPost) srv.POST("/guestbook", hand.GuestbookPost)
srv.GET("/guestbook/admin", hand.GuestbookAdmin)
srv.DELETE("/guestbook/admin/entry/:id", hand.GuestbookAdminDeleteEntry)
srv.POST("/guestbook/admin/entry/:id", hand.GuestbookAdminUpdateEntry)
srv.POST("/guestbook/admin/entry/", hand.GuestbookAdminNewEntry)
srv.DELETE("/guestbook/admin/reply/:id", hand.GuestbookAdminDeleteReply)
srv.POST("/guestbook/admin/reply/:id", hand.GuestbookAdminUpdateReply)
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)
srv.POST("/api/captcha/", hand.CaptchaNew) srv.POST("/api/captcha/", hand.CaptchaNew)
srv.POST("/api/captcha/:id", hand.CaptchaSolve) srv.POST("/api/captcha/:id", hand.CaptchaSolve)
srv.GET("/api/captcha/:id/image", hand.CaptchaImage) srv.GET("/api/captcha/:id/image", hand.CaptchaImage)