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')