Dariusz Kuc
accept(ContentType) { // configure route post("foo") {...} } // configure same route as above? post("foo") {...}
Olivier Patry
val route = post("foo") { ... } route.install(ContentNegotiation) { jackson(contentType = ContentType.parse("application/graphql-response+json")) // fallback jackson(contentType = ContentType.Any) }
A modern programming language that makes developers happier.