use skynet_ldap_backend::{ db_init, get_config, methods::{ account_new::post::{account, email}, account_update::post_update_ldap, }, State, }; #[async_std::main] async fn main() -> tide::Result<()> { let config = get_config(); let db = db_init(&config).await?; let host_port = config.host_port.clone(); tide::log::start(); let state = State { db, config, }; 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.listen(host_port).await?; Ok(()) } /* Password reset via email */