feat: migrate v1 api mod to use actix_auth_middleware

This commit is contained in:
realaravinth
2022-05-07 12:29:37 +05:30
parent b057e48d72
commit a668fafa62
17 changed files with 65 additions and 19 deletions

View File

@@ -42,7 +42,7 @@ pub struct MCaptchaDetails {
// so that the whole thing can be added/udpaed in a single stroke
#[my_codegen::post(
path = "crate::V1_API_ROUTES.captcha.create",
wrap = "crate::CheckLogin"
wrap = "crate::api::v1::get_middleware()"
)]
pub async fn create(
payload: web::Json<CreateCaptcha>,