This commit is contained in:
realaravinth
2021-05-02 16:44:54 +05:30
parent 5361e9b43a
commit ef778687e0
15 changed files with 75 additions and 426 deletions

View File

@@ -26,87 +26,11 @@ mod routes;
pub use routes::ROUTES;
pub fn services(_cfg: &mut ServiceConfig) {
// mcaptcha
//cfg.service(mcaptcha::mcaptcha::add_mcaptcha);
//cfg.service(mcaptcha::mcaptcha::delete_mcaptcha);
//cfg.service(mcaptcha::mcaptcha::update_token);
//cfg.service(mcaptcha::mcaptcha::get_token);
// levels
//cfg.service(mcaptcha::levels::add_levels);
//cfg.service(mcaptcha::levels::update_levels);
//cfg.service(mcaptcha::levels::delete_levels);
//cfg.service(mcaptcha::levels::get_levels);
// // duration
// cfg.service(mcaptcha::duration::update_duration);
// cfg.service(mcaptcha::duration::get_duration);
}
pub fn new_services(cfg: &mut ServiceConfig) {
pub fn services(cfg: &mut ServiceConfig) {
meta::services(cfg);
auth::services(cfg);
account::services(cfg);
mcaptcha::services(cfg);
//define_resource!(
// cfg,
// ROUTES.meta.build_details,
// Methods::Get,
// meta::build_details
//);
//define_resource!(cfg, ROUTES.meta.health, Methods::Get, meta::health);
// auth
//define_resource!(cfg, ROUTES.auth.register, Methods::Post, auth::signup);
//define_resource!(cfg, ROUTES.auth.logout, Methods::ProtectGet, auth::signout);
//define_resource!(cfg, ROUTES.auth.login, Methods::Post, auth::signin);
// account
// define_resource!(
// cfg,
// ROUTES.account.delete,
// Methods::ProtectPost,
// account::delete::delete_account
// );
//
// define_resource!(
// cfg,
// ROUTES.account.username_exists,
// Methods::Post,
// account::username::username_exists
// );
//
// define_resource!(
// cfg,
// ROUTES.account.email_exists,
// Methods::Post,
// account::email::email_exists
// );
//
// define_resource!(
// cfg,
// ROUTES.account.update_email,
// Methods::Post,
// account::email::set_email
// );
//
// define_resource!(
// cfg,
// ROUTES.account.get_secret,
// Methods::ProtectGet,
// account::secret::get_secret
// );
//
// define_resource!(
// cfg,
// ROUTES.account.update_secret,
// Methods::ProtectPost,
// account::secret::update_user_secret
// );
}
#[cfg(test)]