mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 18:15:39 +00:00
cleanup
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user