fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>, roles: Set<<ERROR CLASS>> = setOf()): Unit
fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>): Unit
A function to generate routes based on definitions from the service manager.