Complete the post router logic that processes the update request of an existing book by using its id property. Declare an id variable and set its value to the id property of the request object. You need to instantiate an object of the book modelĀ and pass this object to the update method of the book model to edit an existing book in the database.
Overview: Using your knowledge of NodeJS and ExpressJS and the Web App Template provided, complete the Favourite Book List web app that you will share on GitHub and deploy to Heroku. Your web app already includes basic navigation controls, a Landing Page, a BookList page and a BookDetails page. Your task is to complete the […]