refactor: removed unnecessary parser

This commit is contained in:
Riccardo
2024-04-22 16:10:29 +02:00
parent 2f5e1628b3
commit f3c907cdde
4 changed files with 7360 additions and 5029 deletions

1
.yarnrc.yml Normal file
View File

@@ -0,0 +1 @@
nodeLinker: node-modules

View File

@@ -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"
}
}

View File

@@ -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()

12380
yarn.lock

File diff suppressed because it is too large Load Diff