mirror of
https://github.com/agersant/polaris
synced 2024-12-02 17:49:10 +00:00
Autoformat
This commit is contained in:
parent
54c5704133
commit
6ae9f6b6a0
2 changed files with 9 additions and 5 deletions
|
@ -176,10 +176,10 @@ fn get_endpoints(db: Arc<DB>, index_channel: Arc<Mutex<Sender<index::Command>>>)
|
|||
"read_playlist");
|
||||
|
||||
playlist_router.delete("/:playlist_name",
|
||||
move |request: &mut Request| {
|
||||
self::delete_playlist(request, delete_db.deref())
|
||||
},
|
||||
"delete_playlist");
|
||||
move |request: &mut Request| {
|
||||
self::delete_playlist(request, delete_db.deref())
|
||||
},
|
||||
"delete_playlist");
|
||||
|
||||
auth_api_mount.mount("/playlist/", playlist_router);
|
||||
}
|
||||
|
|
|
@ -74,7 +74,11 @@ pub fn list_playlists<T>(owner: &str, db: &T) -> Result<Vec<String>>
|
|||
}
|
||||
}
|
||||
|
||||
pub fn save_playlist<T>(playlist_name: &str, owner: &str, content: &Vec<String>, db: &T) -> Result<()>
|
||||
pub fn save_playlist<T>(playlist_name: &str,
|
||||
owner: &str,
|
||||
content: &Vec<String>,
|
||||
db: &T)
|
||||
-> Result<()>
|
||||
where T: ConnectionSource + VFSSource
|
||||
{
|
||||
let user: User;
|
||||
|
|
Loading…
Reference in a new issue