diff --git a/aw-server/src/endpoints/mod.rs b/aw-server/src/endpoints/mod.rs index 954bc459..f6c9271e 100644 --- a/aw-server/src/endpoints/mod.rs +++ b/aw-server/src/endpoints/mod.rs @@ -86,6 +86,21 @@ fn root_favicon(state: &State) -> Option<(ContentType, Vec)> { get_file("favicon.ico".into(), state) } +#[get("/dark.css")] +fn root_dark(state: &State) -> Option<(ContentType, Vec)> { + get_file("dark.css".into(), state) +} + +#[get("/logo.png")] +fn root_logo(state: &State) -> Option<(ContentType, Vec)> { + get_file("logo.png".into(), state) +} + +#[get("/manifest.json")] +fn root_manifest(state: &State) -> Option<(ContentType, Vec)> { + get_file("manifest.json".into(), state) +} + #[get("/")] fn server_info(config: &State, state: &State) -> Json { #[allow(clippy::or_fun_call)] @@ -136,6 +151,10 @@ pub fn build_rocket(server_state: ServerState, config: AWConfig) -> rocket::Rock root_css, root_js, root_static, + // custom static files + root_dark, + root_logo, + root_manifest ], ) .mount("/api/0/info", routes![server_info])