Endpoints for guestbook admin panel.
This commit is contained in:
parent
0015c733bd
commit
87ba488769
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user