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
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
fun Application.userActivityPubRouting() {
@ -8,18 +10,21 @@ fun Application.userActivityPubRouting(){
route("/users/{name}") {
route("/inbox") {
get {
call.respond(HttpStatusCode.OK)
}
post {
call.respond(HttpStatusCode.OK)
}
}
route("/outbox") {
get {
call.respond(HttpStatusCode.OK)
}
post {
call.respond(HttpStatusCode.OK)
}
}
}