Fix doc comment indentation
This commit is contained in:
parent
bcb24c2a97
commit
af604a9ddc
@ -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<dyn Error>>` - 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<dyn Error>>` - A empty result if successful, or an error
|
||||
///
|
||||
#[server(endpoint = "albums/add-album")]
|
||||
pub async fn add_album(album_title: String, release_date: Option<String>, image_path: Option<String>) -> Result<(), ServerFnError> {
|
||||
use crate::schema::albums::{self};
|
||||
|
@ -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<dyn Error>>` - A empty result if successful, or an error
|
||||
///
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `artist_name` - The name of the artist to add
|
||||
///
|
||||
/// # Returns
|
||||
/// * `Result<(), Box<dyn Error>>` - 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::*;
|
||||
|
Loading…
x
Reference in New Issue
Block a user