mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
feat: migrate v1 api mod to use actix_auth_middleware
This commit is contained in:
@@ -96,7 +96,7 @@ impl TrafficPattern {
|
||||
|
||||
#[my_codegen::post(
|
||||
path = "crate::V1_API_ROUTES.captcha.easy.create",
|
||||
wrap = "crate::CheckLogin"
|
||||
wrap = "crate::api::v1::get_middleware()"
|
||||
)]
|
||||
async fn create(
|
||||
payload: web::Json<TrafficPattern>,
|
||||
@@ -149,7 +149,7 @@ pub struct UpdateTrafficPattern {
|
||||
|
||||
#[my_codegen::post(
|
||||
path = "crate::V1_API_ROUTES.captcha.easy.update",
|
||||
wrap = "crate::CheckLogin"
|
||||
wrap = "crate::api::v1::get_middleware()"
|
||||
)]
|
||||
async fn update(
|
||||
payload: web::Json<UpdateTrafficPattern>,
|
||||
|
||||
Reference in New Issue
Block a user