Merge pull request #199 from sugamkarki/master
Removed body-parser as a dependency.
This commit is contained in:
commit
5c00304375
@ -9,7 +9,6 @@
|
||||
"dev": "nodemon src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"body-parser": "^1.19.0",
|
||||
"express": "^4.17.1",
|
||||
"mysql": "^2.17.1",
|
||||
"sqlite3": "^4.1.0",
|
||||
|
@ -6,7 +6,7 @@ const addItem = require('./routes/addItem');
|
||||
const updateItem = require('./routes/updateItem');
|
||||
const deleteItem = require('./routes/deleteItem');
|
||||
|
||||
app.use(require('body-parser').json());
|
||||
app.use(express.json());
|
||||
app.use(express.static(__dirname + '/static'));
|
||||
|
||||
app.get('/items', getItems);
|
||||
|
Loading…
Reference in New Issue
Block a user