From 92df85a4bbd5ce467283f943007135bcc1e58baf Mon Sep 17 00:00:00 2001 From: JMARyA Date: Wed, 7 Aug 2024 21:56:09 +0200 Subject: [PATCH] update --- src/main.rs | 1 + src/route/mod.rs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index 797b844..d5effd1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,6 +35,7 @@ async fn rocket() -> _ { "/", routes![ route::index_redir, + route::manifest_redir, route::artist::artists_route, route::artist::artist_route, route::album::albums_route, diff --git a/src/route/mod.rs b/src/route/mod.rs index 8a0df65..c053c15 100644 --- a/src/route/mod.rs +++ b/src/route/mod.rs @@ -40,3 +40,8 @@ pub async fn to_api(albums: &[impl ToAPI]) -> Vec { pub async fn index_redir() -> Redirect { Redirect::to(uri!("/web")) } + +#[get("/manifest.json")] +pub async fn manifest_redir() -> Redirect { + Redirect::to(uri!("/web/manifest.json")) +}