mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 18:45:41 +00:00
show password component
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
use actix_cors::Cors;
|
||||
use actix_web::web;
|
||||
use actix_web::*;
|
||||
|
||||
pub mod get_config;
|
||||
pub mod verify_pow;
|
||||
@@ -68,4 +69,19 @@ pub mod routes {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#[allow(non_camel_case_types, missing_docs)]
|
||||
pub struct post;
|
||||
impl actix_web::dev::HttpServiceFactory for post {
|
||||
fn register(self, __config: &mut actix_web::dev::AppService) {
|
||||
async fn post() -> impl Responder {
|
||||
HttpResponse::Ok()
|
||||
}
|
||||
let __resource = actix_web::Resource::new("/test/post")
|
||||
.guard(actix_web::guard::Post())
|
||||
.to(post);
|
||||
actix_web::dev::HttpServiceFactory::register(__resource, __config)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user