From ed0f5925de1931a13e6713d73e174a5362fc5d68 Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Sun, 19 Jan 2025 18:04:33 +0100 Subject: database rework update (uncomplete, broken) --- src/routes/album.rs | 2 +- src/routes/artist.rs | 2 +- src/routes/song.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/routes') 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, } -#[get("/api/album")] +#[get("/album")] pub async fn album( app_state: web::Data, get_args: web::Query, 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, } -#[get("/api/artist")] +#[get("/artist")] pub async fn artist( app_state: web::Data, get_args: web::Query, 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, } -#[get("/api/song")] +#[get("/song")] pub async fn song( app_state: web::Data, get_args: web::Query, -- cgit v1.2.3