Skip to content

Commit

Permalink
fix: cookie parser 미들웨어 추가 (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coalery authored Nov 2, 2024
2 parents 8688619 + 53dd085 commit 26c6a92
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
34 changes: 34 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@nestjs/swagger": "^7.4.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cookie-parser": "^1.4.7",
"nestjs-cls": "^3.5.1",
"php-serialize": "^5.0.1",
"reflect-metadata": "^0.1.13",
Expand All @@ -49,6 +50,7 @@
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.81",
"@swc/jest": "^0.2.29",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.2",
"@types/node": "^20.3.1",
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { NestFactory } from '@nestjs/core';
import cookieParser from 'cookie-parser';

import { RootModule } from '@khlug/RootModule';

async function bootstrap() {
const app = await NestFactory.create(RootModule);

app.use(cookieParser());

await app.listen(3000);
}
bootstrap();

0 comments on commit 26c6a92

Please sign in to comment.