mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 18:15:39 +00:00
it appears actix-web's scope behaviour has changed in the latest beta
release: Routes 404'd when scope contained trailing slash like so: let scope = "/api/v1/pow/"; web::scope(scope)// So had to rm trailing slash in scope
This commit is contained in:
@@ -33,9 +33,7 @@ pub struct CaptchaValidateResp {
|
||||
// API keys are mcaptcha actor names
|
||||
|
||||
/// route hander that validates a PoW solution token
|
||||
#[my_codegen::post(
|
||||
path = "V1_API_ROUTES.pow.validate_captcha_token.strip_prefix(V1_API_ROUTES.pow.scope).unwrap()"
|
||||
)]
|
||||
#[my_codegen::post(path = "V1_API_ROUTES.pow.validate_captcha_token()")]
|
||||
pub async fn validate_captcha_token(
|
||||
payload: web::Json<VerifyCaptchaResult>,
|
||||
data: AppData,
|
||||
|
||||
Reference in New Issue
Block a user