diff --git a/src/main/kotlin/andreas311/miso/domain/notification/presentation/NotificationController.kt b/src/main/kotlin/andreas311/miso/domain/notification/presentation/NotificationController.kt index fb233f34..f3cee786 100644 --- a/src/main/kotlin/andreas311/miso/domain/notification/presentation/NotificationController.kt +++ b/src/main/kotlin/andreas311/miso/domain/notification/presentation/NotificationController.kt @@ -21,8 +21,8 @@ class NotificationController( saveDeviceTokenService.execute(deviceToken) .let { ResponseEntity.status(HttpStatus.CREATED).build() } - @GetMapping("/detail") - fun detail(@PathVariable id: Long): ResponseEntity = + @GetMapping("/{id}") + fun getNotification(@PathVariable id: Long): ResponseEntity = detailNotificationService.execute(id) .let { ResponseEntity.status(HttpStatus.OK).body(it) } }