inline fun <T : Any> Route.get(noinline body: suspend RoutingContext.(T) -> Unit): Route(source) Registers a typed handler body for a GET resource defined by the T class.
A class T must be annotated with io.ktor.resources.Resource.
Report a problem
receives an instance of the typed resource T as the first parameter.