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

7. delete api notes #8

Closed CYCBrian closed 10 months ago

CYCBrian commented 10 months ago

DELETE /api/notes/:id should receive a query parameter containing the id of a note to delete. In order to delete a note, you'll need to read all notes from the db.json file, remove the note with the given id property, and then rewrite the notes to the db.json file.

CYCBrian commented 10 months ago

made the code, again it's made on server.js, next step is to modularize it in issue 8

CYCBrian commented 10 months ago

DONE!