Skip to content

Commit

Permalink
Feat : 네이버 oauth 승인 위하여 유저 이메일 조회 api 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
YubinShin committed Nov 25, 2023
1 parent 82f5233 commit 2e4f453
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@ export class UsersController {
return result;
}
/** -------------------- */

/** 나의 이메일 가져오기 */
@Get("me/email")
@ApiOperation({ summary: "나의 이메일 조회" })
@ApiBearerAuth("access_token")
@ApiResponse({
status: 200,
description: "나의 이메일 조회"
})
async getMyEmail(@GetCurrentUserInfo() user) {
this.logger.log(`${user["user_email"]} 이메일 조회 호출`);
return user["user_email"];
}
/** -------------------- */

/** 나의 칭호 변경하기 */
@Patch("me/title")
Expand Down

0 comments on commit 2e4f453

Please sign in to comment.