summaryrefslogtreecommitdiff
path: root/src/routes.rs
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-19 14:58:26 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-19 14:58:26 +0100
commit95b944b819d7a1320d3083929177676f93d4a3e3 (patch)
tree824e3baea0bf1f386a48ca3da587fbb334101e16 /src/routes.rs
parent073149464269b5fcc90e282536c1a946ad474085 (diff)
add album and artist routes
Diffstat (limited to 'src/routes.rs')
-rw-r--r--src/routes.rs18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/routes.rs b/src/routes.rs
index a219da1..d984505 100644
--- a/src/routes.rs
+++ b/src/routes.rs
@@ -1,14 +1,30 @@
use serde::Serialize;
pub mod song;
+pub mod album;
+pub mod artist;
#[derive(Serialize)]
pub struct Song {
- id: Option<i32>,
name: Option<String>,
+ id: Option<i32>,
lyrics: Option<String>,
album_name: Option<String>,
album_id: Option<i32>,
artist_name: Option<String>,
artist_id: Option<i32>,
}
+
+#[derive(Serialize)]
+pub struct Album {
+ name: Option<String>,
+ id: Option<i32>,
+ artist_name: Option<String>,
+ artist_id: Option<i32>,
+}
+
+#[derive(Serialize)]
+pub struct Artist {
+ name: Option<String>,
+ id: Option<i32>,
+}