CYCBrian / Week-11-Express.js-Note-Taker

An application used to write and save notes. This application will use an Express.js back end and will save and retrieve note data from a JSON file.
MIT License
0 stars 0 forks source link

5. get api notes #6

Closed CYCBrian closed 10 months ago

CYCBrian commented 10 months ago

GET /api/notes should read the db.json file and return all saved notes as JSON.

CYCBrian commented 10 months ago

Added code to read the db.json and return all the notes as json.

only wrote it in the main server.js file, will need to modularize it into api-route.js later.

CYCBrian commented 10 months ago

DONE!