removed bodyparser as a dependency

This commit is contained in:
magusikrak 2021-09-29 00:09:39 +05:45
parent 13386236e4
commit 8a8994297d
No known key found for this signature in database
GPG Key ID: 6F70CE913A5C8F64
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@
"dev": "nodemon src/index.js" "dev": "nodemon src/index.js"
}, },
"dependencies": { "dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1", "express": "^4.17.1",
"mysql": "^2.17.1", "mysql": "^2.17.1",
"sqlite3": "^4.1.0", "sqlite3": "^4.1.0",

View File

@ -6,7 +6,7 @@ const addItem = require('./routes/addItem');
const updateItem = require('./routes/updateItem'); const updateItem = require('./routes/updateItem');
const deleteItem = require('./routes/deleteItem'); const deleteItem = require('./routes/deleteItem');
app.use(require('body-parser').json()); app.use(express.json());
app.use(express.static(__dirname + '/static')); app.use(express.static(__dirname + '/static'));
app.get('/items', getItems); app.get('/items', getItems);