fix: better layout using modules
This commit is contained in:
parent
bfa88b72b7
commit
3165f67e4c
4 changed files with 312 additions and 312 deletions
14
src/main.rs
14
src/main.rs
|
@ -1,10 +1,6 @@
|
|||
use skynet_ldap_backend::{
|
||||
db_init, get_config,
|
||||
methods::{
|
||||
account_new::post::{account, email},
|
||||
account_update::post_update_ldap,
|
||||
password_reset::{post_password_auth, post_password_reset},
|
||||
},
|
||||
methods::{account_new, account_recover, account_update::post_update_ldap},
|
||||
State,
|
||||
};
|
||||
|
||||
|
@ -25,10 +21,10 @@ async fn main() -> tide::Result<()> {
|
|||
let mut app = tide::with_state(state);
|
||||
|
||||
app.at("/ldap/update").post(post_update_ldap);
|
||||
app.at("/ldap/new/email").post(email::submit);
|
||||
app.at("/ldap/new/account").post(account::submit);
|
||||
app.at("/ldap/reset").post(post_password_reset);
|
||||
app.at("/ldap/reset/auth").post(post_password_auth);
|
||||
app.at("/ldap/new/email").post(account_new::post::email::submit);
|
||||
app.at("/ldap/new/account").post(account_new::post::account::submit);
|
||||
app.at("/ldap/recover/password").post(account_recover::password::reset);
|
||||
app.at("/ldap/recover/password/auth").post(account_recover::password::auth);
|
||||
|
||||
app.listen(host_port).await?;
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue