we don't need to commit styles.css, actually!

This commit is contained in:
2026-04-08 01:12:25 +02:00
parent 673ea40fa6
commit 386118de7d
5 changed files with 37 additions and 36 deletions

View File

@@ -9,13 +9,13 @@ mod components;
mod icons;
mod pages;
pub const STYLES_CSS: &str = include_str!("./styles.css");
pub const CSS: &str = include_str!(concat!(env!("OUT_DIR"), "/styles.css"));
pub fn web_router() -> Router {
Router::new()
.route(
"/styles.css",
get(|| async { ([(header::CONTENT_TYPE, "text/css")], STYLES_CSS) }),
get(([(header::CONTENT_TYPE, "text/css")], CSS)),
)
.merge(pages::pages())
}

File diff suppressed because one or more lines are too long