refactor: removed unnecessary parser
This commit is contained in:
1
.yarnrc.yml
Normal file
1
.yarnrc.yml
Normal file
@@ -0,0 +1 @@
|
||||
nodeLinker: node-modules
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-template-with-typescript",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "Backend with NodeJS in TypeScript",
|
||||
"main": "src/index.ts",
|
||||
"repository": "https://github.com/RiccardoSenica/nodejs-template-with-typescript",
|
||||
@@ -30,7 +30,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "5.1.1",
|
||||
"body-parser": "^1.20.2",
|
||||
"cors": "^2.8.5",
|
||||
"express": "^4.18.2",
|
||||
"express-rate-limit": "^6.11.0",
|
||||
@@ -67,8 +66,5 @@
|
||||
"ts-jest": "^29.1.1",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^5.1.6"
|
||||
},
|
||||
"resolutions": {
|
||||
"@babel/traverse": "^7.23.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import * as bodyParser from 'body-parser';
|
||||
import cors from 'cors';
|
||||
import express, { Request, Response } from 'express';
|
||||
import { rateLimit } from 'express-rate-limit';
|
||||
@@ -29,7 +28,6 @@ server.use(
|
||||
);
|
||||
server.use(limiter);
|
||||
server.use(express.json());
|
||||
server.use(bodyParser.json());
|
||||
|
||||
const schema = z.object({
|
||||
value: z.number()
|
||||
|
||||
Reference in New Issue
Block a user