I am trying to call a function in a controller class that is parameterized (the class is parameterized). is there any keyword I can add to the routes config to let it know which class to use as the parameter for the cls?
Example:
Say I have the following controller:
package com.kotlin.controllers
class Controller<T: Model> {
fun <T> execute
}
and this model:
package com.kotlin.models
data class Model(var id: Int)
routes:
- regex: ‘^/base(/*+)?$’
cls: com.kotlin.controllers.Controller
func: execute
I need to be able to add to the route which class to use for T (the generic type)…something like:
clsparam: com.kotlin.models.Model