Skip to content

Commit

Permalink
Fix: apply Authguard in map-leave-api
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwoonglee committed Aug 3, 2024
1 parent 53641ed commit e679dff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export class UserController {
@Delete('maps/:mapId')
@ApiOperation({ summary: '지도(그룹) 나가기' })
@ApiOkResponse({})
@UseAuthGuard([UserRole.USER])
@ApiBearerAuth()
async leaveMap(@CurrentUser() user: User, @Param('mapId') mapId: string) {
return await this.userService.leaveMap(user.id, mapId);
}
Expand Down

0 comments on commit e679dff

Please sign in to comment.