inline fun <reified T : Any> Route.location( noinline body: Route.() -> Unit): Route
Registers a route body for a location defined by class T.
Class T must be annotated with Location.
fun <T : Any> Route.location( data: KClass<T>, body: Route.() -> Unit): Route
Registers a route body for a location defined by class data.
Class data must be annotated with Location.