aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-07-31 21:25:35 +0200
committermetamuffin <metamuffin@disroot.org>2023-07-31 21:25:35 +0200
commita9a1f430f413887e77345ef0766a12c64cd6f8db (patch)
tree949f1100794d335a70be7550154490ea64498535 /server/src/routes
parent8e8166c85a3d1f20dfeaf18f29d08d74c554fcbc (diff)
downloadjellything-a9a1f430f413887e77345ef0766a12c64cd6f8db.tar
jellything-a9a1f430f413887e77345ef0766a12c64cd6f8db.tar.bz2
jellything-a9a1f430f413887e77345ef0766a12c64cd6f8db.tar.zst
change paths
Diffstat (limited to 'server/src/routes')
-rw-r--r--server/src/routes/ui/player.rs10
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>,