we don't need to commit styles.css, actually!
This commit is contained in:
@@ -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
Reference in New Issue
Block a user