diff --git a/packages/server/src/board/board.controller.ts b/packages/server/src/board/board.controller.ts index 9e6dc76..7022462 100644 --- a/packages/server/src/board/board.controller.ts +++ b/packages/server/src/board/board.controller.ts @@ -41,6 +41,7 @@ import { HttpExceptionFilter } from '../exception-filter/http.exception-filter'; @Controller('post') @UseInterceptors(LogInterceptor) +@UseFilters(HttpExceptionFilter) @ApiTags('게시글 API') export class BoardController { constructor(private readonly boardService: BoardService) {} @@ -49,7 +50,6 @@ export class BoardController { @UseGuards(CookieAuthGuard) @UseInterceptors(FilesInterceptor('file', 3)) @UseInterceptors(TransactionInterceptor) - @UseFilters(HttpExceptionFilter) @UsePipes(ValidationPipe) @CreateBoardSwaggerDecorator() createBoard( diff --git a/packages/server/src/board/board.module.ts b/packages/server/src/board/board.module.ts index 6bb9b30..3d63be8 100644 --- a/packages/server/src/board/board.module.ts +++ b/packages/server/src/board/board.module.ts @@ -22,6 +22,7 @@ import { { name: Exception.name, schema: ExceptionSchema }, ]), ], + controllers: [BoardController], providers: [BoardService], }) export class BoardModule {}