diff --git a/backend/src/app.service.ts b/backend/src/app.service.ts index 927d7cc..3f1fc9e 100644 --- a/backend/src/app.service.ts +++ b/backend/src/app.service.ts @@ -1,7 +1,11 @@ import { Injectable } from '@nestjs/common'; +import { ConfigService } from '@nestjs/config'; @Injectable() export class AppService { + constructor( + private readonly configService: ConfigService + ) {} getHello(): string { return 'Hello World!'; } diff --git a/backend/src/main.ts b/backend/src/main.ts index db8e898..b875596 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -6,7 +6,7 @@ const corsOptions = { async function bootstrap() { const app = await NestFactory.create(AppModule); - app.enableCors(); + app.enableCors(corsOptions); await app.listen(process.env.PORT ?? 3000); }