diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/routes/ui/player.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/server/src/routes/ui/player.rs b/server/src/routes/ui/player.rs index 0e87749..2d06af4 100644 --- a/server/src/routes/ui/player.rs +++ b/server/src/routes/ui/player.rs @@ -21,9 +21,6 @@ use jellycommon::{Node, SourceTrackKind}; use markup::DynRender; use rocket::{get, FromForm, State}; -pub fn player_uri(id: &str) -> String { - format!("/player/{}", id) -} #[derive(FromForm, Default, Clone, Debug)] pub struct PlayerConfig { @@ -33,7 +30,12 @@ pub struct PlayerConfig { pub webm: bool, } -#[get("/player/<id>?<conf..>", rank = 4)] +pub fn player_uri(id: &str) -> String { + format!("/n/{}/player", id) +}pub fn player_uri(id: &str) -> String { + format!("/player/{}", id) +} + pub fn r_player( _sess: Session, db: &State<Database>, |