summaryrefslogtreecommitdiff
path: root/src/routes.rs
diff options
context:
space:
mode:
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>,
+}