handle
Registers a handler body for a resource defined by the T class.
Parameters
body
receives an instance of the typed resource T as the first parameter.
fun <T : Any> Route.handle(serializer: KSerializer<T>, body: suspend RoutingContext.(T) -> Unit)(source)
Registers a handler body for a resource defined by the T class.