diff --git a/server/src/main.rs b/server/src/main.rs index 8e17c87..a745d97 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1,5 +1,6 @@ use app::*; use axum::Router; +use db::*; use fileserv::file_and_error_handler; use leptos::*; use leptos_axum::{generate_route_list, LeptosRoutes}; @@ -14,7 +15,6 @@ async fn main() { let addr = leptos_options.site_addr; let routes = generate_route_list(App); - use db::*; let pool = start_pool().await.expect("pool error"); let _ = db_build(pool.clone()).await.unwrap();