Closed CYCBrian closed 10 months ago
GET /api/notes should read the db.json file and return all saved notes as JSON.
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.
DONE!
GET /api/notes should read the db.json file and return all saved notes as JSON.