npm install body-parser --save
and set up the config for body parser inindex.js
- create a
show
page that renders individual cheeses by id. - create a
new
page that renders a form for the user to create a new cheese. - The form on the
new
page should send aPOST
request to/cheeses
and add a new cheese to the database. After the cheese is added, redirect the user to the new cheese's show page.
hananalshammary / lab-w05d02-cheesy-create Goto Github PK
View Code? Open in Web Editor NEWThis project forked from wdi-honeybadger/lab-w05d02-cheesy-create