diff --git a/server/src/main.rs b/server/src/main.rs index 7b98f2f..f1d0fcd 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -11,11 +11,11 @@ pub mod catchers; pub mod handlers; fn rocket() -> Rocket { - let static_dir = concat!(env!("CARGO_MANIFEST_DIR"), "/static"); + let static_dir = concat!(env!("CARGO_MANIFEST_DIR"), "/../ui/static"); let static_files = StaticFiles::from(static_dir); rocket::ignite() - .mount("/", routes![handlers::index]) + .mount("/", static_files) .mount( "/company", routes![handlers::company::index, handlers::company::create], @@ -41,7 +41,6 @@ fn rocket() -> Rocket { ], ) .mount("/invoices", routes![handlers::invoices::index]) - .mount("/static", static_files) .mount( "/timeline", routes![