This commit is contained in:
Adam 2024-02-01 00:48:48 -05:00
parent bfff54c2b2
commit a67c2120e0

View file

@ -1,5 +1,6 @@
use app::*; use app::*;
use axum::Router; use axum::Router;
use db::*;
use fileserv::file_and_error_handler; use fileserv::file_and_error_handler;
use leptos::*; use leptos::*;
use leptos_axum::{generate_route_list, LeptosRoutes}; use leptos_axum::{generate_route_list, LeptosRoutes};
@ -14,7 +15,6 @@ async fn main() {
let addr = leptos_options.site_addr; let addr = leptos_options.site_addr;
let routes = generate_route_list(App); let routes = generate_route_list(App);
use db::*;
let pool = start_pool().await.expect("pool error"); let pool = start_pool().await.expect("pool error");
let _ = db_build(pool.clone()).await.unwrap(); let _ = db_build(pool.clone()).await.unwrap();