feat: とりあえずinbox/outboxでokを返すように

This commit is contained in:
usbharu 2023-03-24 23:50:50 +09:00
parent 2065c6ca9e
commit 013bf02484
1 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,8 @@
package dev.usbharu.hideout.routing package dev.usbharu.hideout.routing
import io.ktor.http.*
import io.ktor.server.application.* import io.ktor.server.application.*
import io.ktor.server.response.*
import io.ktor.server.routing.* import io.ktor.server.routing.*
fun Application.userActivityPubRouting() { fun Application.userActivityPubRouting() {
@ -8,18 +10,21 @@ fun Application.userActivityPubRouting(){
route("/users/{name}") { route("/users/{name}") {
route("/inbox") { route("/inbox") {
get { get {
call.respond(HttpStatusCode.OK)
} }
post { post {
call.respond(HttpStatusCode.OK)
} }
} }
route("/outbox") { route("/outbox") {
get { get {
call.respond(HttpStatusCode.OK)
} }
post { post {
call.respond(HttpStatusCode.OK)
} }
} }
} }