Dariusz Kuc
03/06/2023, 11:43 PMaccept(ContentType) {
// configure route
post("foo") {...}
}
// configure same route as above?
post("foo") {...}
seems pretty redundant....Olivier Patry
03/07/2023, 6:48 AMDariusz Kuc
03/07/2023, 7:09 PMval route = post("foo") { ... }
route.install(ContentNegotiation) {
jackson(contentType = ContentType.parse("application/graphql-response+json"))
// fallback
jackson(contentType = ContentType.Any)
}
thanks!