Permalink
Browse files

uncomment express urlencoded

  • Loading branch information...
iLimas committed Feb 14, 2020
1 parent 4c69977 commit eb841fae96189ae33cbf1216b8f4f749a8fb3a15
Showing with 2 additions and 2 deletions.
  1. +2 −2 server.js
@@ -28,14 +28,14 @@ const { shopRouter } = require('./controllers/shop.js')
/* Step 3.a
* ...to parse the body of the HTTP requests from a URL encoded string
*/
//app.use(express.urlencoded())
app.use(express.urlencoded())

/* Step 3.b
*
* ...to parse the body of the HTTP requests from a JSON string
* replace the above line with this
*/
app.use(express.json())
// app.use(express.json())

/* Step 3.b
*

0 comments on commit eb841fa

Please sign in to comment.