mirror of https://github.com/usbharu/Hideout.git
feat: とりあえずinbox/outboxでokを返すように
This commit is contained in:
parent
2065c6ca9e
commit
013bf02484
|
@ -1,25 +1,30 @@
|
||||||
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() {
|
||||||
routing {
|
routing {
|
||||||
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue