mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 10:35:39 +00:00
routes updated
This commit is contained in:
@@ -55,8 +55,8 @@ mod tests {
|
||||
const NAME: &str = "powverifyusr";
|
||||
const PASSWORD: &str = "testingpas";
|
||||
const EMAIL: &str = "verifyuser@a.com";
|
||||
const VERIFY_URL: &str = "/api/v1/mcaptcha/pow/verify";
|
||||
const GET_URL: &str = "/api/v1/mcaptcha/pow/config";
|
||||
const VERIFY_URL: &str = "/api/v1/pow/verify";
|
||||
const GET_URL: &str = "/api/v1/pow/config";
|
||||
// const UPDATE_URL: &str = "/api/v1/mcaptcha/domain/token/duration/update";
|
||||
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ pub struct CaptchaValidateResp {
|
||||
|
||||
// API keys are mcaptcha actor names
|
||||
|
||||
#[post("/api/v1/pow/siteverify")]
|
||||
#[post("/siteverify")]
|
||||
pub async fn validate_captcha_token(
|
||||
payload: web::Json<VerifyCaptchaResult>,
|
||||
data: web::Data<Data>,
|
||||
@@ -61,8 +61,8 @@ mod tests {
|
||||
const NAME: &str = "enterprisetken";
|
||||
const PASSWORD: &str = "testingpas";
|
||||
const EMAIL: &str = "verifyuser@enter.com";
|
||||
const VERIFY_CAPTCHA_URL: &str = "/api/v1/mcaptcha/pow/verify";
|
||||
const GET_URL: &str = "/api/v1/mcaptcha/pow/config";
|
||||
const VERIFY_CAPTCHA_URL: &str = "/api/v1/pow/verify";
|
||||
const GET_URL: &str = "/api/v1/pow/config";
|
||||
const VERIFY_TOKEN_URL: &str = "/api/v1/pow/siteverify";
|
||||
// const UPDATE_URL: &str = "/api/v1/mcaptcha/domain/token/duration/update";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user