Skip to content

Commit

Permalink
remove body-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
dczulada committed Oct 1, 2024
1 parent 8f855b5 commit 9d5324b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 173 deletions.
207 changes: 37 additions & 170 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"build/*"
],
"dependencies": {
"body-parser": "~1.19.0",
"express": "^4.17.1",
"fqm-execution": "^1.5.0",
"winston": "^3.3.3"
Expand Down
3 changes: 1 addition & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import bodyParser from 'body-parser';
import express from 'express';
import { logger } from './utils/logger';
import { RequestBody, DataRequirementsBody } from './types/ServerTypes';
Expand All @@ -7,7 +6,7 @@ import { getErrorCode } from './ErrorConverter';

const app = express();

app.use(bodyParser.json({ limit: '50mb' }));
app.use(express.json({ limit: '50mb' }));

app.post('/calculateRaw', async (req, res) => {
const body = req.body as RequestBody;
Expand Down

0 comments on commit 9d5324b

Please sign in to comment.