Skip to content

Commit

Permalink
๐Ÿ› fix: api prefix ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
swkim12345 committed Nov 18, 2024
1 parent d0b6735 commit 93e7ac3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { useSwagger } from '@/configs/swagger.config';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const store = app.get(MEMORY_STORE);

app.setGlobalPrefix('api');
app.use(session({ ...sessionConfig, store }));
app.useGlobalPipes(new ValidationPipe({ transform: true }));
useSwagger(app);
Expand Down

0 comments on commit 93e7ac3

Please sign in to comment.