This file connects to a database, creates a payload, reads, updates and deletes data.
The POST route creates the new data.
The GET route fetches the data using findById.
The PUT route updates the data using findByIdAndUpdate.
The DELETE route updates the data using findByIdAndDelete.
Link to the app's Heroku hosting: https://crud-app-by-vincent.herokuapp.com/