icons and logos

This commit is contained in:
Mateusz Gruszczyński
2026-07-31 14:15:44 +02:00
parent 618e5ae0fb
commit c6e9a3dd43
16 changed files with 182 additions and 17 deletions
+10 -4
View File
@@ -46,10 +46,9 @@ pub fn router(
}
});
let asset_cache_control = HeaderValue::from_str(&crate::cache::cache_control(
asset_cache_max_age_seconds,
))
.expect("valid asset cache-control header");
let asset_cache_control =
HeaderValue::from_str(&crate::cache::cache_control(asset_cache_max_age_seconds))
.expect("valid asset cache-control header");
Router::new()
.route("/", get(home))
@@ -63,6 +62,13 @@ pub fn router(
.route("/health", get(health))
.route("/robots.txt", get(robots_txt))
.route("/favicon.ico", get(favicon))
.route("/favicon.svg", get(favicon_svg))
.route("/favicon-32.png", get(favicon_png))
.route("/apple-touch-icon.png", get(apple_touch_icon))
.route("/icons/favicon.ico", get(favicon))
.route("/icons/favicon.svg", get(favicon_svg))
.route("/icons/favicon-32.png", get(favicon_png))
.route("/icons/apple-touch-icon.png", get(apple_touch_icon))
.route("/f/{token}/{filename}", get(api::download_file))
.route(
"/files/{directory}/{filename}",