Your are required to create some endpoints and each endpoint must do a specific task. This project you will be adding, removing, editing and getting expenses data. Below are the endpoints and their methods that are required:
- /expenses GET => response should be list of expenses
- /expenses POST => should add to the expense list and the body should include description & amount
- /expense/id DELETE => should delete the specific expense by the id that is passed
- /expense/id PUT => should edit the specific expense and the body should include description or amount or both
- /expense/total GET => should return the total amount of all expenses
- /expense/id GET => just get one expense with that specific id passed
For number 3,4 & 6 you need to figure out the concept of params and your task is to try and figure out how to use it using the express documentation or any other resource you find.
Good Luck!