File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed
Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1+ const bodyParser = require ( 'body-parser' )
12const express = require ( 'express' )
23const mysql = require ( 'mysql' )
34
45const app = express ( )
56app . set ( 'x-powered-by' , false )
7+ app . use ( bodyParser . json ( ) )
68
79const pool = mysql . createPool ( {
810 connectionLimit : 2 ,
Original file line number Diff line number Diff line change 55 "start" : " node app.js"
66 },
77 "dependencies" : {
8+ "body-parser" : " ~1.19.0" ,
89 "express" : " ~4.17.1" ,
910 "mysql" : " ~2.18.1"
1011 }
Original file line number Diff line number Diff line change 1+ const bodyParser = require('body-parser')
12const express = require('express')
23const mysql = require('mysql')
34
45const app = express()
56app.set('x-powered-by', false)
7+ app.use(bodyParser.json())
68
79const pool = mysql.createPool({
810 connectionLimit: 2,
Original file line number Diff line number Diff line change 55 "start": "node app.js"
66 },
77 "dependencies": {
8+ "body-parser": "~1.19.0",
89 "express": "~4.17.1",
910 "mysql": "~2.18.1"
1011 }
You can’t perform that action at this time.
0 commit comments