From 66f5a86bc447984f79859ec4034e7d5810512d85 Mon Sep 17 00:00:00 2001
From: Vardy <kds0034@gmail.com>
Date: Sun, 10 Dec 2023 21:54:49 +0900
Subject: [PATCH] =?UTF-8?q?chore:=20UseGuard=20=EC=A0=81=EC=9A=A9=20(#342)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 BackEnd/src/records/records.controller.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/BackEnd/src/records/records.controller.ts b/BackEnd/src/records/records.controller.ts
index 8094928b..b2823bf9 100644
--- a/BackEnd/src/records/records.controller.ts
+++ b/BackEnd/src/records/records.controller.ts
@@ -25,6 +25,7 @@ import {
 } from './dto/record-response.dto';
 
 @ApiTags('사용자 기록 API')
+@UseGuards(AccessTokenGuard)
 @Controller('api/v1/records')
 export class RecordsController {
   constructor(private readonly recordsService: RecordsService) {}
@@ -32,7 +33,6 @@ export class RecordsController {
   @ApiOperation({ summary: '운동 기록 생성' })
   @ApiBody({ type: CreateExerciseLogDto })
   @ApiCreatedResponse({ type: CreateRecordResDto })
-  @UseGuards(AccessTokenGuard)
   async createWorkOutLog(
     @ProfileDeco() profile: Profile,
     @Body() body: CreateExerciseLogDto,
@@ -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,