// HTTPSolve fiber handler for solve captcha
HTTPSolve fiber handler for solve captcha
// HTTPSolve fiber handler for solve captcha
func HTTPSolve(c *fiber.Ctx, config *Config, storage *Storage) error {
	r := new(SolveRequest)
	if err := c.BodyParser(r); err != nil {
		return err
	}
	valid := storage.Validate(r.ID, r.Value)
	if valid {
		return c.Status(200).JSON(true)
	}
	return c.Status(400).JSON(false)
}
func HTTPSolve ( c * fiber . Ctx , config * Config , storage * Storage ) error { r := new ( SolveRequest ) if err := c . BodyParser ( r ) ; err != nil { return err } valid := storage . Validate ( r . ID , r . Value ) if valid { return c . Status ( 200 ) . JSON ( true ) } return c . Status ( 400 ) . JSON ( false ) }
HTTPSolve fiber handler for solve captcha
HTTPSolve fiber handler for solve captcha