This commit is contained in:
JMARyA 2024-08-07 21:56:09 +02:00
parent 4a60f12c52
commit 92df85a4bb
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 6 additions and 0 deletions

View file

@ -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,

View file

@ -40,3 +40,8 @@ pub async fn to_api(albums: &[impl ToAPI]) -> Vec<serde_json::Value> {
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"))
}