refactor captcha.rs and levels.rs and rm duration routes

This commit is contained in:
realaravinth
2021-12-16 20:46:50 +05:30
parent cf4a0f9b73
commit 73ce2d1cb1
22 changed files with 860 additions and 886 deletions

View File

@@ -26,7 +26,7 @@ use crate::{PAGES, V1_API_ROUTES};
pub async fn delete_sitekey(path: web::Path<String>) -> impl Responder {
let key = path.into_inner();
let data = vec![("sitekey", key)];
let page = SudoPage::new(V1_API_ROUTES.mcaptcha.delete, Some(data))
let page = SudoPage::new(V1_API_ROUTES.captcha.delete, Some(data))
.render_once()
.unwrap();
HttpResponse::Ok()

View File

@@ -19,7 +19,7 @@ use actix_identity::Identity;
use actix_web::{HttpResponse, Responder};
use sailfish::TemplateOnce;
use crate::api::v1::mcaptcha::captcha::MCaptchaDetails;
use crate::api::v1::mcaptcha::create::MCaptchaDetails;
use crate::errors::*;
use crate::AppData;