From c742b752140ab0eee6e353c779bd897042ba6739 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Tue, 19 Jul 2022 19:49:39 -0400 Subject: Big login system Still needs cookies, but those are coming! (and should be set anyways!) --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.rs') 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() -- cgit v1.2.3