diff --git a/src/api/playlist.js b/src/api/playlist.js index d2d2ad4b50b94504119159f19407e9ade21a9a56..181e4ef07cd03d4e3241831aeccdd57cc3450036 100644 --- a/src/api/playlist.js +++ b/src/api/playlist.js @@ -15,6 +15,17 @@ export const getPlaylistsByUser = (userInfo) => { }); } +/* + title: string + */ +export const getPlaylistsByTitle = (titleInfo) => { + console.log(titleInfo) + return axios.get(`${PLAYLIST_MODULE}/fetchByTitle`, { params: titleInfo }) + .then(res => { + return res; + }); +} + /* // TODO - modified - user_name: string