diff options
author | metamuffin <metamuffin@disroot.org> | 2023-09-29 19:24:22 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-09-29 19:24:22 +0200 |
commit | 3bf58dc257d64e4048185b2fa3a525d65a0475b1 (patch) | |
tree | f83838ce79dec52d4132d73c1f8a2ae61a8d1b5a /server | |
parent | bc62c44793d3c1a35734cfe298cb9b5733f8e86c (diff) | |
download | keks-meet-3bf58dc257d64e4048185b2fa3a525d65a0475b1.tar keks-meet-3bf58dc257d64e4048185b2fa3a525d65a0475b1.tar.bz2 keks-meet-3bf58dc257d64e4048185b2fa3a525d65a0475b1.tar.zst |
add temporary favicon
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index 1f002b4..d36681b 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -54,9 +54,8 @@ async fn run() { .and(warp::ws()) .map(signaling_connect); - // TODO add cache policy headers - let index: _ = warp::path!().and(s_file!("client-web/public/start.html", "text/html")); + let favicon: _ = warp::path!("favicon.ico").and(s_file!("client-web/public/favicon.ico", "image/avif")); let room: _ = warp::path!("room").and(s_file!("client-web/public/app.html", "text/html")); let assets: _ = warp::path("assets").and(s_asset_dir!()); let sw_script: _ = warp::path("sw.js").and(s_file!( @@ -75,7 +74,6 @@ async fn run() { }); let css: _ = warp::path!("style.css") .map(move || warp::reply::with_header(css(), "content-type", "text/css")); - let favicon: _ = warp::path!("favicon.ico").map(|| ""); let old_format_redirect: _ = warp::path!("room" / String).map(|rsecret| { reply::with_header( StatusCode::MOVED_PERMANENTLY, |