From 61e5a497452053afc55bfb940cfd0b98f0301ec2 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 10 Dec 2025 21:59:21 +0000 Subject: [PATCH] added bruno files Co-authored-by: Joe Arndt Reviewed-on: https://git.8yte.me/joe/common-cents-api/pulls/1 --- bruno/Common Cents/Nest Default Get.bru | 11 +++++++++++ bruno/Common Cents/bruno.json | 9 +++++++++ bruno/Common Cents/environments/common-cents.bru | 3 +++ src/app.controller.ts | 2 +- src/main.ts | 3 ++- 5 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 bruno/Common Cents/Nest Default Get.bru create mode 100644 bruno/Common Cents/bruno.json create mode 100644 bruno/Common Cents/environments/common-cents.bru 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();