route
fun <I : Any, O : Any, E : RestEndpoint<I, O>> Route.route(kClass: KClass<E>, block: RestEndpointHandler<O, E>.() -> Unit)
Routes a RestEndpoint with Ktor. The block must specify a handler for the endpoint (RestEndpointHandler.handle).
Routes a RestEndpoint with Ktor. The block must specify a handler for the endpoint (RestEndpointHandler.handle).