From 5bf7a1a25cbfec6ba88b52f11f7a4651fcc0357f Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sun, 5 Nov 2023 14:50:06 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=B8=8D=E8=A6=81=E3=81=AA?= =?UTF-8?q?=E3=83=87=E3=83=95=E3=82=A9=E3=83=AB=E3=83=88=E5=AE=9F=E8=A3=85?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activitypub/interfaces/api/inbox/InboxController.kt | 3 +-- .../activitypub/interfaces/api/outbox/OutboxController.kt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/inbox/InboxController.kt b/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/inbox/InboxController.kt index e8f2a764..f0c4b55d 100644 --- a/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/inbox/InboxController.kt +++ b/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/inbox/InboxController.kt @@ -1,6 +1,5 @@ package dev.usbharu.hideout.activitypub.interfaces.api.inbox -import org.springframework.http.HttpStatus import org.springframework.http.ResponseEntity import org.springframework.web.bind.annotation.RequestBody import org.springframework.web.bind.annotation.RequestMapping @@ -18,5 +17,5 @@ interface InboxController { ], method = [RequestMethod.GET, RequestMethod.POST] ) - suspend fun inbox(@RequestBody string: String): ResponseEntity = ResponseEntity(HttpStatus.ACCEPTED) + suspend fun inbox(@RequestBody string: String): ResponseEntity } diff --git a/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/outbox/OutboxController.kt b/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/outbox/OutboxController.kt index 39cd78f1..1a4d9f60 100644 --- a/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/outbox/OutboxController.kt +++ b/src/main/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/outbox/OutboxController.kt @@ -1,6 +1,5 @@ package dev.usbharu.hideout.activitypub.interfaces.api.outbox -import org.springframework.http.HttpStatus import org.springframework.http.ResponseEntity import org.springframework.web.bind.annotation.RequestBody import org.springframework.web.bind.annotation.RequestMapping @@ -10,5 +9,5 @@ import org.springframework.web.bind.annotation.RestController @RestController interface OutboxController { @RequestMapping("/outbox", "/users/{username}/outbox", method = [RequestMethod.POST, RequestMethod.GET]) - suspend fun outbox(@RequestBody string: String): ResponseEntity = ResponseEntity(HttpStatus.ACCEPTED) + suspend fun outbox(@RequestBody string: String): ResponseEntity }