diff --git a/cmd/justcaptchad/main.go b/cmd/justcaptchad/main.go index a59d3b1..5efaaef 100644 --- a/cmd/justcaptchad/main.go +++ b/cmd/justcaptchad/main.go @@ -3,7 +3,6 @@ package main import ( "flag" "fmt" - "justcaptcha/internal/captcha" "justcaptcha/internal/handlers" "justcaptcha/pkg/server" "log" @@ -30,12 +29,10 @@ func main() { return } - captcha.Init(*captchaExpiry) - - hand := handlers.New() + hand := handlers.New(*captchaExpiry) srv := server.NewHttpServer() - srv.GET("/", hand.New) + srv.POST("/", hand.New) srv.POST("/:captcha", hand.Solve) srv.GET("/:captcha", hand.IsSolved) srv.GET("/:captcha/image", hand.Image)