From 4afcc04041ec1cf3d59ac1315574ab25041aaef8 Mon Sep 17 00:00:00 2001 From: uuuuuuuk Date: Fri, 15 Dec 2023 09:49:15 +0900 Subject: [PATCH] =?UTF-8?q?:memo:=20NotificationController=20=EC=97=90=20g?= =?UTF-8?q?etNotification=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=97=94?= =?UTF-8?q?=EB=93=9C=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notification/presentation/NotificationController.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }