moved pow to independent module

This commit is contained in:
realaravinth
2021-04-11 22:57:56 +05:30
parent 29e2bb1c58
commit a3f060350c
6 changed files with 10 additions and 10 deletions

View File

@@ -20,6 +20,7 @@ use actix_web::web::ServiceConfig;
pub mod auth;
pub mod mcaptcha;
pub mod meta;
pub mod pow;
pub fn services(cfg: &mut ServiceConfig) {
// meta
@@ -53,9 +54,9 @@ pub fn services(cfg: &mut ServiceConfig) {
cfg.service(mcaptcha::duration::get_duration);
// pow
cfg.service(mcaptcha::pow::get_config::get_config);
cfg.service(mcaptcha::pow::verify_pow::verify_pow);
cfg.service(mcaptcha::pow::verify_token::validate_captcha_token);
cfg.service(pow::get_config::get_config);
cfg.service(pow::verify_pow::verify_pow);
cfg.service(pow::verify_token::validate_captcha_token);
}
#[cfg(test)]