diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index c4a298f..ed943c7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,7 @@ mod config; mod errors; +mod handlers; +mod models; use std::{net::SocketAddr, str::FromStr, sync::Arc, time::Duration}; @@ -50,6 +52,7 @@ async fn main() { let app = Router::new() .route("/health", get(health_check)) .route("/", get(index)) + .nest("/dash", handlers::gen_routers().await) .route("/static/:name", get(statics)) .layer( ServiceBuilder::new() |