erinfox / bey-pi

api for all things yoncé
3 stars 2 forks source link

Removed Unwanted Routes and Added Albums Route #9

Closed NickFoden closed 6 years ago

NickFoden commented 6 years ago

Removed routes in accordance with open #5 Issue.

Added Route with albums that has some basic information for each album

/albums

Wrote down list of albums and attributes in google drive and then used https://www.csvjson.com/csv2json to create JSON real fast.

This was good test before compiling list of songs. There is a lot of information to potentially add to each album and song. I think can keep a google drive document going and then easy to add more and more and then throw into csvjson to update.

Used wikipedia to make the list: Data looks like:

{ "title": "Dangerously In Love", "type": "Studio", "year": 2003, "cover": "https://upload.wikimedia.org/wikipedia/en/8/84/Dangerously_In_Love_Album%282003%29.png" },

NickFoden commented 6 years ago

Added tracks route that sends back track listing, removed node_modules from git tracking and update YONCÉ ERROR to suggest trying a different route if user goes to non existent route.