ErrorCodes []string `json:"error-codes"` | ErrorCodes []string `json:"error-codes"` | ||||
} | } | ||||
const apiURL = "/api/siteverify" | |||||
const apiURL = "api/siteverify" | |||||
// Verify calls Google Recaptcha API to verify token | // Verify calls Google Recaptcha API to verify token | ||||
func Verify(response string) (bool, error) { | func Verify(response string) (bool, error) { |