From 57d2b0c5528d49547e5bf041b24f5fcbe0fa6b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EA=B7=BC=ED=98=95?= Date: Tue, 17 Oct 2023 21:15:13 +0900 Subject: [PATCH] =?UTF-8?q?[ST-778]=20/user/tutoring/list=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔨 /user/tutoring/list 수정 * 🔨 /user/tutoring/list 수정 --- src/user/user.controller.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/user/user.controller.ts b/src/user/user.controller.ts index afb4a0b..8228d38 100644 --- a/src/user/user.controller.ts +++ b/src/user/user.controller.ts @@ -177,11 +177,11 @@ export class UserController { } @ApiTags('User') - @ApiParam(UserParam.userId) + @ApiBearerAuth('Authorization') @ApiOperation(UserOperation.tutoringList) - @Get('user/tutoring/list/:userId') - tutoringList(@Param('userId') userId: string) { - return this.userService.tutoringList(userId); + @Get('user/tutoring/list') + tutoringList(@Headers() headers: Headers) { + return this.userService.tutoringList(AccessToken.userId(headers)); } @ApiTags('Teacher')