Add song detail controller

This commit is contained in:
jeffvli 2023-05-19 22:20:32 -07:00 committed by Jeff
parent 2cefc092ce
commit c4fb9a2e72
4 changed files with 37 additions and 3 deletions

View file

@ -256,6 +256,15 @@ const getSongList = async (args: SongListArgs) => {
)?.(args);
};
const getSongDetail = async (args: SongDetailArgs) => {
return (
apiController(
'getSongDetail',
args.apiClientProps.server?.type,
) as ControllerEndpoint['getSongDetail']
)?.(args);
};
const getMusicFolderList = async (args: MusicFolderListArgs) => {
return (
apiController(
@ -444,6 +453,7 @@ export const controller = {
getPlaylistDetail,
getPlaylistList,
getPlaylistSongList,
getSongDetail,
getSongList,
getTopSongList,
getUserList,