simplify static routes

This commit is contained in:
iliana etaoin 2023-04-06 12:02:19 -07:00
parent 0005b3bd56
commit 5cb522d78e
3 changed files with 2 additions and 8 deletions

View File

@ -159,18 +159,12 @@ fn code() -> Code {
#[get("/static/site.css")]
fn css() -> (ContentType, &'static str) {
(
ContentType::CSS,
include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/static/site.css")),
)
(ContentType::CSS, include_str!("site.css"))
}
#[get("/static/copy.js")]
fn copy_js() -> (ContentType, &'static str) {
(
ContentType::JavaScript,
include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/static/copy.js")),
)
(ContentType::JavaScript, include_str!("copy.js"))
}
#[get("/favicon.ico")]