Skip to content

Commit 8a62275

Browse files
committed
refactor: swagger에 unauthorized 응답 정보 추가
1 parent cd22661 commit 8a62275

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nestjs-BE/server/src/invite-codes/invite-codes.controller.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ export class InviteCodesController {
3030
status: HttpStatus.BAD_REQUEST,
3131
description: 'Space code input is missing.',
3232
})
33+
@ApiResponse({
34+
status: HttpStatus.UNAUTHORIZED,
35+
description: 'need access token',
36+
})
3337
@ApiResponse({
3438
status: HttpStatus.NOT_FOUND,
3539
description: 'Space not found.',
@@ -50,6 +54,10 @@ export class InviteCodesController {
5054
status: HttpStatus.OK,
5155
description: 'Returns a space associated with the invite code.',
5256
})
57+
@ApiResponse({
58+
status: HttpStatus.UNAUTHORIZED,
59+
description: 'need access token',
60+
})
5361
@ApiResponse({
5462
status: HttpStatus.NOT_FOUND,
5563
description: 'Invite code not found.',

0 commit comments

Comments
 (0)