Skip to content

Commit

Permalink
/user/me 구현 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
endermaru authored Jan 26, 2025
1 parent 5bd96a5 commit c444320
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data class Resume(
): Resume =
Resume(
id = resumeEntity.id,
postId = resumeEntity.role?.id,
postId = resumeEntity.position?.id,
author = if (includeAuthor) User.fromEntity(resumeEntity.user, includeResumes = false) else null,
content = resumeEntity.content ?: "",
createdAt = resumeEntity.createdAt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,14 @@ class UserController(
userService.checkSnuMailVerification(request) // TODO: 뭐라도 Return해야 하지는 않을지
return ResponseEntity.ok().build()
}

// TODO
// @GetMapping("/me")
// fun getUserInfo()
@GetMapping("/me")
fun getUserInfo(
@Parameter(hidden = true) @AuthUser user: User,
): ResponseEntity<User> {
return ResponseEntity.ok(user)
}

// Endpoint for resetting DB for testing

Expand Down

0 comments on commit c444320

Please sign in to comment.