Skip to content

Commit

Permalink
chore: UseGuard 적용 (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonholim authored Dec 10, 2023
1 parent 531ed60 commit 66f5a86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions BackEnd/src/records/records.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ import {
} from './dto/record-response.dto';

@ApiTags('사용자 기록 API')
@UseGuards(AccessTokenGuard)
@Controller('api/v1/records')
export class RecordsController {
constructor(private readonly recordsService: RecordsService) {}
@Post()
@ApiOperation({ summary: '운동 기록 생성' })
@ApiBody({ type: CreateExerciseLogDto })
@ApiCreatedResponse({ type: CreateRecordResDto })
@UseGuards(AccessTokenGuard)
async createWorkOutLog(
@ProfileDeco() profile: Profile,
@Body() body: CreateExerciseLogDto,
Expand All @@ -44,7 +44,6 @@ export class RecordsController {
@Get('me')
@ApiOperation({ summary: '내 연/월/일에 맞는 모든 기록 조회' })
@ApiCreatedResponse({ type: GetUsersRecordsResDto })
@UseGuards(AccessTokenGuard)
async getUserRecords(
@ProfileDeco() profile: Profile,
@Query('year') year: number,
Expand Down

0 comments on commit 66f5a86

Please sign in to comment.