Created
April 25, 2020 11:01
-
-
Save erdemuslu/117aa3d3d1a0ca4c612bec8786367066 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function LyricsService() { | |
this.url = 'https://api.lyrics.ovh/v1/'; | |
this.get = async ({ artist = '', title = '' }) => { | |
const response = await fetch(`${this.url}${artist}/${title}`); | |
return response.json(); | |
}; | |
} | |
export default new LyricsService(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment