update
This commit is contained in:
parent
4a60f12c52
commit
92df85a4bb
2 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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"))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue