aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-06-24 23:20:42 +0200
committermetamuffin <metamuffin@disroot.org>2023-06-24 23:20:42 +0200
commit2c5e565a613e5d235113b39647a54a6b90388136 (patch)
tree203fb182bbbecbf6365c3bd6938f4cd4e0fa9089 /server
parent5d3fd85dd9c822a5126dfa9737fd4c95b1bf9008 (diff)
downloadkeks-meet-2c5e565a613e5d235113b39647a54a6b90388136.tar
keks-meet-2c5e565a613e5d235113b39647a54a6b90388136.tar.bz2
keks-meet-2c5e565a613e5d235113b39647a54a6b90388136.tar.zst
first draft with sass
Diffstat (limited to 'server')
-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)