File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 "@nestjs/microservices" : " ^4.0.1" ,
2020 "@nestjs/testing" : " ^4.0.1" ,
2121 "@nestjs/websockets" : " ^4.0.1" ,
22- "body-parser" : " ^1.17.2" ,
2322 "class-transformer" : " ^0.1.7" ,
2423 "class-validator" : " ^0.7.2" ,
2524 "redis" : " ^2.7.1" ,
Original file line number Diff line number Diff line change 1- import * as bodyParser from 'body-parser' ;
21import { NestFactory } from '@nestjs/core' ;
32import { ApplicationModule } from './modules/app.module' ;
43import { ValidationPipe } from './modules/common/pipes/validation.pipe' ;
54
65async function bootstrap ( ) {
76 const app = await NestFactory . create ( ApplicationModule ) ;
8-
9- app . use ( bodyParser . json ( ) ) ;
107 app . useGlobalPipes ( new ValidationPipe ( ) ) ;
11-
128 await app . listen ( 3000 ) ;
139}
1410bootstrap ( ) ;
Original file line number Diff line number Diff line change 1414 "@nestjs/microservices" : " ^4.0.1" ,
1515 "@nestjs/testing" : " ^4.0.1" ,
1616 "@nestjs/websockets" : " ^4.0.1" ,
17- "body-parser" : " ^1.17.2" ,
1817 "class-transformer" : " ^0.1.7" ,
1918 "class-validator" : " ^0.7.2" ,
2019 "redis" : " ^2.7.1" ,
Original file line number Diff line number Diff line change 1- import * as bodyParser from 'body-parser' ;
21import { NestFactory } from '@nestjs/core' ;
32import { ApplicationModule } from './modules/app.module' ;
43
54async function bootstrap ( ) {
65 const app = await NestFactory . create ( ApplicationModule ) ;
7- app . use ( bodyParser . json ( ) ) ;
86 await app . listen ( 3000 ) ;
97}
108bootstrap ( ) ;
Original file line number Diff line number Diff line change 1515 "@nestjs/testing" : " ^4.0.1" ,
1616 "@nestjs/websockets" : " ^4.0.1" ,
1717 "amqplib" : " ^0.5.1" ,
18- "body-parser" : " ^1.17.2" ,
1918 "class-transformer" : " ^0.1.7" ,
2019 "class-validator" : " ^0.7.2" ,
2120 "redis" : " ^2.7.1" ,
Original file line number Diff line number Diff line change 1- import * as bodyParser from 'body-parser' ;
21import { NestFactory } from '@nestjs/core' ;
32import { ApplicationModule } from './modules/app.module' ;
43import { Transport } from '@nestjs/microservices' ;
@@ -9,7 +8,6 @@ async function bootstrap() {
98 transport : Transport . TCP ,
109 } ) ;
1110
12- app . use ( bodyParser . json ( ) ) ;
1311 await app . startAllMicroservicesAsync ( ) ;
1412 await app . listen ( 3001 ) ;
1513}
Original file line number Diff line number Diff line change 1414 "@nestjs/microservices" : " ^4.0.1" ,
1515 "@nestjs/testing" : " ^4.0.1" ,
1616 "@nestjs/websockets" : " ^4.0.1" ,
17- "body-parser" : " ^1.17.2" ,
1817 "redis" : " ^2.7.1" ,
1918 "reflect-metadata" : " ^0.1.10" ,
2019 "rxjs" : " ^5.4.3" ,
Original file line number Diff line number Diff line change 1- import * as bodyParser from 'body-parser' ;
21import { NestFactory } from '@nestjs/core' ;
32import { ApplicationModule } from './modules/app.module' ;
43
54async function bootstrap ( ) {
65 const app = await NestFactory . create ( ApplicationModule ) ;
7- app . use ( bodyParser . json ( ) ) ;
86 await app . listen ( 3001 ) ;
97}
108bootstrap ( ) ;
Original file line number Diff line number Diff line change 1414 "@nestjs/microservices" : " ^4.0.1" ,
1515 "@nestjs/testing" : " ^4.0.1" ,
1616 "@nestjs/websockets" : " ^4.0.1" ,
17- "body-parser" : " ^1.17.2" ,
1817 "mysql" : " ^2.14.1" ,
1918 "redis" : " ^2.7.1" ,
2019 "reflect-metadata" : " ^0.1.10" ,
Original file line number Diff line number Diff line change 1- import * as bodyParser from 'body-parser' ;
21import { NestFactory } from '@nestjs/core' ;
32import { ApplicationModule } from './modules/app.module' ;
43
54async function bootstrap ( ) {
65 const app = await NestFactory . create ( ApplicationModule ) ;
7- app . use ( bodyParser . json ( ) ) ;
86 await app . listen ( 3001 ) ;
97}
108bootstrap ( ) ;
You can’t perform that action at this time.
0 commit comments