mirror of
https://github.com/usbharu/Hideout.git
synced 2026-08-30 00:04:04 +00:00
feat: ログを詳細に
This commit is contained in:
@@ -8,6 +8,5 @@ import io.ktor.server.application.*
|
||||
fun Application.configureMonitoring() {
|
||||
install(CallLogging) {
|
||||
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.")
|
||||
val person = activityPubUserService.getPersonByName(name)
|
||||
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