mirror of https://github.com/usbharu/Hideout.git
feat: ログを詳細に
This commit is contained in:
parent
2f15b0e3e4
commit
88fd245d3f
|
@ -8,6 +8,5 @@ import io.ktor.server.application.*
|
||||||
fun Application.configureMonitoring() {
|
fun Application.configureMonitoring() {
|
||||||
install(CallLogging) {
|
install(CallLogging) {
|
||||||
level = Level.INFO
|
level = Level.INFO
|
||||||
filter { call -> call.request.path().startsWith("/") }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ fun Routing.usersAP(activityPubUserService: ActivityPubUserService) {
|
||||||
call.parameters["name"] ?: throw ParameterNotExistException("Parameter(name='name') does not exist.")
|
call.parameters["name"] ?: throw ParameterNotExistException("Parameter(name='name') does not exist.")
|
||||||
val person = activityPubUserService.getPersonByName(name)
|
val person = activityPubUserService.getPersonByName(name)
|
||||||
call.response.header("Content-Type", ContentType.Application.Activity.toString())
|
call.response.header("Content-Type", ContentType.Application.Activity.toString())
|
||||||
call.respond(HttpStatusCode.OK, Config.configData.objectMapper.writeValueAsString(person))
|
return@handle call.respond(HttpStatusCode.OK, Config.configData.objectMapper.writeValueAsString(person))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue