mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-15 14:05:00 +00:00
refactor: 不要なデフォルト実装を削除
This commit is contained in:
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
package dev.usbharu.hideout.activitypub.interfaces.api.inbox
|
package dev.usbharu.hideout.activitypub.interfaces.api.inbox
|
||||||
|
|
||||||
import org.springframework.http.HttpStatus
|
|
||||||
import org.springframework.http.ResponseEntity
|
import org.springframework.http.ResponseEntity
|
||||||
import org.springframework.web.bind.annotation.RequestBody
|
import org.springframework.web.bind.annotation.RequestBody
|
||||||
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RequestMapping
|
||||||
@@ -18,5 +17,5 @@ interface InboxController {
|
|||||||
],
|
],
|
||||||
method = [RequestMethod.GET, RequestMethod.POST]
|
method = [RequestMethod.GET, RequestMethod.POST]
|
||||||
)
|
)
|
||||||
suspend fun inbox(@RequestBody string: String): ResponseEntity<Unit> = ResponseEntity(HttpStatus.ACCEPTED)
|
suspend fun inbox(@RequestBody string: String): ResponseEntity<Unit>
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -1,6 +1,5 @@
|
|||||||
package dev.usbharu.hideout.activitypub.interfaces.api.outbox
|
package dev.usbharu.hideout.activitypub.interfaces.api.outbox
|
||||||
|
|
||||||
import org.springframework.http.HttpStatus
|
|
||||||
import org.springframework.http.ResponseEntity
|
import org.springframework.http.ResponseEntity
|
||||||
import org.springframework.web.bind.annotation.RequestBody
|
import org.springframework.web.bind.annotation.RequestBody
|
||||||
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RequestMapping
|
||||||
@@ -10,5 +9,5 @@ import org.springframework.web.bind.annotation.RestController
|
|||||||
@RestController
|
@RestController
|
||||||
interface OutboxController {
|
interface OutboxController {
|
||||||
@RequestMapping("/outbox", "/users/{username}/outbox", method = [RequestMethod.POST, RequestMethod.GET])
|
@RequestMapping("/outbox", "/users/{username}/outbox", method = [RequestMethod.POST, RequestMethod.GET])
|
||||||
suspend fun outbox(@RequestBody string: String): ResponseEntity<Unit> = ResponseEntity(HttpStatus.ACCEPTED)
|
suspend fun outbox(@RequestBody string: String): ResponseEntity<Unit>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user