diff --git a/bruno/Common Cents/Nest Default Get.bru b/bruno/Common Cents/Nest Default Get.bru new file mode 100644 index 0000000..aa6ef24 --- /dev/null +++ b/bruno/Common Cents/Nest Default Get.bru @@ -0,0 +1,11 @@ +meta { + name: Nest Default Get + type: http + seq: 2 +} + +get { + url: {{localUrl}} + body: none + auth: inherit +} diff --git a/bruno/Common Cents/bruno.json b/bruno/Common Cents/bruno.json new file mode 100644 index 0000000..5584f9e --- /dev/null +++ b/bruno/Common Cents/bruno.json @@ -0,0 +1,9 @@ +{ + "version": "1", + "name": "Common Cents", + "type": "collection", + "ignore": [ + "node_modules", + ".git" + ] +} \ No newline at end of file diff --git a/bruno/Common Cents/environments/common-cents.bru b/bruno/Common Cents/environments/common-cents.bru new file mode 100644 index 0000000..6465dab --- /dev/null +++ b/bruno/Common Cents/environments/common-cents.bru @@ -0,0 +1,3 @@ +vars { + localUrl: http://localhost:3000 +} diff --git a/src/app.controller.ts b/src/app.controller.ts index cce879e..61c9c36 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -3,7 +3,7 @@ import { AppService } from './app.service'; @Controller() export class AppController { - constructor(private readonly appService: AppService) {} + constructor(private readonly appService: AppService) { } @Get() getHello(): string { diff --git a/src/main.ts b/src/main.ts index f76bc8d..9307714 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,8 +1,9 @@ import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; +import { NestExpressApplication } from '@nestjs/platform-express'; async function bootstrap() { - const app = await NestFactory.create(AppModule); + const app = await NestFactory.create(AppModule); await app.listen(process.env.PORT ?? 3000); } bootstrap();