Skip to content

Commit

Permalink
feat/#66: add ApiBearerAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
hobiJeong committed Dec 4, 2023
1 parent 62b4bd3 commit ebd5e47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apis/notice-boards/controllers/notice-boards.swagger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HttpStatus, applyDecorators } from '@nestjs/common';
import { ApiOperation } from '@nestjs/swagger';
import { ApiBearerAuth, ApiOperation } from '@nestjs/swagger';
import { OperationObject } from '@nestjs/swagger/dist/interfaces/open-api-spec.interface';
import { COMMON_ERROR_CODE } from '@src/constants/error/common/common-error-code.constant';
import { HttpException } from '@src/http-exceptions/exceptions/http.exception';
Expand All @@ -21,6 +21,7 @@ export const ApiNoticeBoard: ApiOperator<keyof NoticeBoardsController> = {
operationId: 'NoticeBoardCreate',
...apiOperationOptions,
}),
ApiBearerAuth(),
DetailResponseDto.swaggerBuilder(
HttpStatus.CREATED,
'noticeBoard',
Expand Down

0 comments on commit ebd5e47

Please sign in to comment.