koin-ktor / org.koin.ktor.ext / io.ktor.routing.Routing / getProperty

getProperty

inline fun <reified T> Routing.getProperty(key: String): T?

Retrieve given property for KoinComponent

Parameters

key -

inline fun <reified T> Routing.getProperty(key: String, defaultValue: T): T

Retrieve given property for KoinComponent give a default value if property is missing

Parameters

key -

defaultValue -