summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index 26d22ee..431d668 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -8,6 +8,7 @@ pub mod config;
pub mod protocol;
pub mod room;
+use assets::css_bundle;
use config::{ClientAppearanceConfig, ClientConfig};
use hyper::{header, StatusCode};
use listenfd::ListenFd;
@@ -68,6 +69,8 @@ async fn run() {
let client_config_css: _ = warp::path!("overrides.css").map(move || {
warp::reply::with_header(client_config_css.clone(), "content-type", "text/css")
});
+ let css: _ = warp::path!("style.css")
+ .map(move || warp::reply::with_header(css_bundle(), "content-type", "text/css"));
let favicon: _ = warp::path!("favicon.ico").map(|| "");
let old_format_redirect: _ = warp::path!("room" / String).map(|rsecret| {
reply::with_header(
@@ -85,6 +88,7 @@ async fn run() {
.or(signaling)
.or(client_config)
.or(version)
+ .or(css)
.or(favicon)
.or(sw_script)
.or(old_format_redirect)