From 013bf024841e046041ede9915c5afc24acfb794e Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Fri, 24 Mar 2023 23:50:50 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=81=A8=E3=82=8A=E3=81=82=E3=81=88?= =?UTF-8?q?=E3=81=9Ainbox/outbox=E3=81=A7ok=E3=82=92=E8=BF=94=E3=81=99?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../usbharu/hideout/routing/userActivityPubRouting.kt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt b/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt index 3d08cffb..41f85d63 100644 --- a/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt +++ b/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt @@ -1,25 +1,30 @@ package dev.usbharu.hideout.routing +import io.ktor.http.* import io.ktor.server.application.* +import io.ktor.server.response.* import io.ktor.server.routing.* -fun Application.userActivityPubRouting(){ +fun Application.userActivityPubRouting() { routing { route("/users/{name}") { - route("/inbox"){ + route("/inbox") { get { - + call.respond(HttpStatusCode.OK) } post { + call.respond(HttpStatusCode.OK) } } route("/outbox") { get { + call.respond(HttpStatusCode.OK) } post { + call.respond(HttpStatusCode.OK) } } }