1
0

Added needed CAPTCHA endpoints.

This commit is contained in:
Alexander Andreev 2023-02-05 23:04:56 +04:00
parent 0703064e08
commit 685735a576
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -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)