Merge pull request #199 from sugamkarki/master

Removed body-parser as a dependency.
This commit is contained in:
Stefan Scherer 2021-11-12 08:03:35 +01:00 committed by GitHub
commit 5c00304375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);