feat: new module for user signup

This commit is contained in:
silver 2023-06-04 13:27:15 +01:00
parent 686df5ac03
commit 894b6d42e5
3 changed files with 70 additions and 0 deletions

View file

@ -1,5 +1,6 @@
use skynet_ldap_server::methods::account_update::post_update_ldap;
use skynet_ldap_server::{db_init, get_config, State};
use skynet_ldap_server::methods::account_new::post_new_account;
#[async_std::main]
async fn main() -> tide::Result<()> {
@ -18,6 +19,8 @@ async fn main() -> tide::Result<()> {
let mut app = tide::with_state(state);
app.at("/ldap/update").post(post_update_ldap);
app.at("/ldap/new").post(post_new_account);
app.listen(host_port).await?;
Ok(())