summaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-19 18:04:33 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-19 18:04:33 +0100
commited0f5925de1931a13e6713d73e174a5362fc5d68 (patch)
treeb7d6e2e6db726a3cfff2358afade70da682d5e0f /src/routes
parent95b944b819d7a1320d3083929177676f93d4a3e3 (diff)
database rework update (uncomplete, broken)
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/album.rs2
-rw-r--r--src/routes/artist.rs2
-rw-r--r--src/routes/song.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/album.rs b/src/routes/album.rs
index 1948339..02116d4 100644
--- a/src/routes/album.rs
+++ b/src/routes/album.rs
@@ -10,7 +10,7 @@ struct AlbumQueryOptions {
artist: Option<String>,
}
-#[get("/api/album")]
+#[get("/album")]
pub async fn album(
app_state: web::Data<AppState>,
get_args: web::Query<AlbumQueryOptions>,
diff --git a/src/routes/artist.rs b/src/routes/artist.rs
index bf18e34..6a16ace 100644
--- a/src/routes/artist.rs
+++ b/src/routes/artist.rs
@@ -9,7 +9,7 @@ struct ArtistQueryOptions {
name: Option<String>,
}
-#[get("/api/artist")]
+#[get("/artist")]
pub async fn artist(
app_state: web::Data<AppState>,
get_args: web::Query<ArtistQueryOptions>,
diff --git a/src/routes/song.rs b/src/routes/song.rs
index 8b28b8d..0cdd4b5 100644
--- a/src/routes/song.rs
+++ b/src/routes/song.rs
@@ -11,7 +11,7 @@ struct SongQueryOptions {
album: Option<String>,
}
-#[get("/api/song")]
+#[get("/song")]
pub async fn song(
app_state: web::Data<AppState>,
get_args: web::Query<SongQueryOptions>,