diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-08-23 18:10:18 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-08-23 18:10:18 +0200 |
commit | eedc536c23c3230c6ebeac8b495b2cfef0317830 (patch) | |
tree | 198007257cfa195c410c28b0a576f46fb8870ab9 /server/src/main.rs | |
parent | 0dace9fb82953cc91e6d603c4c9970631ac036ad (diff) |
Auth login
Diffstat (limited to 'server/src/main.rs')
-rw-r--r-- | server/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index e2536ca..3436e2c 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -31,7 +31,9 @@ async fn create_app() -> Router { logger::setup(); let _ = db::setup().await; - let api_routes = Router::new().nest("/users", routes::user::create_route()); + let api_routes = Router::new() + .nest("/users", routes::user::create_route()) + .nest("/auth", routes::auth::create_route()); Router::new() .nest("/v1", api_routes) |