From 95b944b819d7a1320d3083929177676f93d4a3e3 Mon Sep 17 00:00:00 2001 From: niliara-edu Date: Sun, 19 Jan 2025 14:58:26 +0100 Subject: add album and artist routes --- src/routes.rs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/routes.rs') 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, name: Option, + id: Option, lyrics: Option, album_name: Option, album_id: Option, artist_name: Option, artist_id: Option, } + +#[derive(Serialize)] +pub struct Album { + name: Option, + id: Option, + artist_name: Option, + artist_id: Option, +} + +#[derive(Serialize)] +pub struct Artist { + name: Option, + id: Option, +} -- cgit v1.2.3