all repos — breadsite @ a9bfda71f59db16d9e135ced0c1daba8aa76bb33

Unnamed repository; edit this file 'description' to name the repository.

undo doopid
confusedbread confuseddbread@gmail.com
Fri, 11 Jul 2025 05:34:01 +0200
commit

a9bfda71f59db16d9e135ced0c1daba8aa76bb33

parent

4292ce9a724f34b8bc7fa03efd96797ebda7ad70

1 files changed, 1 insertions(+), 6 deletions(-)

jump to
M src/main.rssrc/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()