Added needed CAPTCHA endpoints.
This commit is contained in:
parent
0703064e08
commit
685735a576
@ -65,6 +65,9 @@ func main() {
|
||||
srv.POST("/guestbook", hand.GuestbookPost)
|
||||
srv.GET("/robots.txt", hand.Robots)
|
||||
srv.GET("/rss.xml", hand.RSS)
|
||||
srv.POST("/api/captcha/", hand.CaptchaNew)
|
||||
srv.POST("/api/captcha/:id", hand.CaptchaSolve)
|
||||
srv.GET("/api/captcha/:id/image", hand.CaptchaImage)
|
||||
|
||||
if err := srv.Start(network, *listenAddress); err != nil {
|
||||
log.Fatalln(err)
|
||||
|
Loading…
Reference in New Issue
Block a user