undo doopid
confusedbread confuseddbread@gmail.com
Fri, 11 Jul 2025 05:34:01 +0200
1 files changed,
1 insertions(+),
6 deletions(-)
jump to
M
src/main.rs
→
src/main.rs
@@ -13,13 +13,9 @@ }
#[cfg(debug_assertions)] const URL: &str = "http://localhost:5050/api"; -#[cfg(debug_assertions)] -const PATH: &str = "./static/"; #[cfg(not(debug_assertions))] const URL: &str = "https://kate.breadlabs.de/api"; -#[cfg(not(debug_assertions))] -const PATH: &str = "/www/breadsite/static/"; fn head(page_title: &str) -> Markup { html! {@@ -146,12 +142,11 @@ }
#[actix_web::main] async fn main() -> io::Result<()> { - HttpServer::new(|| App::new() .service(breadsite_index) .service(breadsite_boop) .service(breadsite_waf) - .service(Files::new("/static", PATH)) + .service(Files::new("/static", "./static")) ) .bind(("localhost", 8083))? .run()