Skip to content

Instantly share code, notes, and snippets.

@trepidity
Created January 3, 2017 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trepidity/d9f1f527c677491bd1b1487e5f748975 to your computer and use it in GitHub Desktop.
Save trepidity/d9f1f527c677491bd1b1487e5f748975 to your computer and use it in GitHub Desktop.
class SongApi {
static getAllSongs() {
return fetch('http://wellspring-fellowship.github.io/site.json').then(response => {
return response.json();
}).catch(error => {
return error;
});
}
}
export default SongApi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment