Skip to content

Commit

Permalink
📝 NotificationController 에 getNotification 메서드 엔드포인트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuuuuk committed Dec 15, 2023
1 parent d92248f commit 4afcc04
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class NotificationController(
saveDeviceTokenService.execute(deviceToken)
.let { ResponseEntity.status(HttpStatus.CREATED).build() }

@GetMapping("/detail")
fun detail(@PathVariable id: Long): ResponseEntity<DetailNotificationResponseDto> =
@GetMapping("/{id}")
fun getNotification(@PathVariable id: Long): ResponseEntity<DetailNotificationResponseDto> =
detailNotificationService.execute(id)
.let { ResponseEntity.status(HttpStatus.OK).body(it) }
}

0 comments on commit 4afcc04

Please sign in to comment.