resource
inline fun <T : Any> <ERROR CLASS>.resource(noinline body: <ERROR CLASS>.() -> Unit): <ERROR CLASS>
Content copied to clipboard
Registers a route body for a resource defined by the T class.
A class Tmust be annotated with io.ktor.resources.Resource.
fun <T : Any> <ERROR CLASS>.resource(serializer: <ERROR CLASS><T>, body: <ERROR CLASS>.() -> Unit): <ERROR CLASS>
Content copied to clipboard
Registers a route body for a resource defined by the T class.