mcaptcah uses const routes

This commit is contained in:
realaravinth
2021-05-02 16:35:15 +05:30
parent 76ae2b03e9
commit 5361e9b43a
9 changed files with 141 additions and 46 deletions

View File

@@ -33,3 +33,9 @@ pub fn get_random(len: usize) -> String {
.take(len)
.collect::<String>()
}
pub fn services(cfg: &mut actix_web::web::ServiceConfig) {
duration::services(cfg);
levels::services(cfg);
mcaptcha::services(cfg);
}