mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
refactor captcha.rs and levels.rs and rm duration routes
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user