mirror of
https://github.com/usbharu/Hideout.git
synced 2026-08-28 22:53:43 +00:00
feat: ログを詳細に
This commit is contained in:
@@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user