diff --git a/src/api/albums.rs b/src/api/albums.rs index 0c0f934..16fc13c 100644 --- a/src/api/albums.rs +++ b/src/api/albums.rs @@ -11,16 +11,16 @@ cfg_if! { } /// Add an album to the database - /// - /// # Arguments - /// - /// * `album_title` - The name of the artist to add - /// * `release_data` - The release date of the album (Optional) - /// * `image_path` - The path to the album's image file (Optional) - /// - /// # Returns - /// * `Result<(), Box>` - A empty result if successful, or an error - /// +/// +/// # Arguments +/// +/// * `album_title` - The name of the artist to add +/// * `release_data` - The release date of the album (Optional) +/// * `image_path` - The path to the album's image file (Optional) +/// +/// # Returns +/// * `Result<(), Box>` - A empty result if successful, or an error +/// #[server(endpoint = "albums/add-album")] pub async fn add_album(album_title: String, release_date: Option, image_path: Option) -> Result<(), ServerFnError> { use crate::schema::albums::{self}; diff --git a/src/api/artists.rs b/src/api/artists.rs index 6545ef6..df5dbb0 100644 --- a/src/api/artists.rs +++ b/src/api/artists.rs @@ -10,14 +10,14 @@ cfg_if! { } /// Add an artist to the database - /// - /// # Arguments - /// - /// * `artist_name` - The name of the artist to add - /// - /// # Returns - /// * `Result<(), Box>` - A empty result if successful, or an error - /// +/// +/// # Arguments +/// +/// * `artist_name` - The name of the artist to add +/// +/// # Returns +/// * `Result<(), Box>` - A empty result if successful, or an error +/// #[server(endpoint = "artists/add-artist")] pub async fn add_artist(artist_name: String) -> Result<(), ServerFnError> { use crate::schema::artists::dsl::*;