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")) +}