Levi
11/17/2023, 2:43 PMapplication.conf
, do I need to separately add the typesafe config as a dependency or do I somehow have access to this functionality as an indirect dependency?e5l
11/17/2023, 2:44 PMLevi
11/17/2023, 2:46 PMLevi
11/17/2023, 2:47 PMLevi
11/17/2023, 2:48 PMLevi
11/17/2023, 4:09 PMfun Route.createUserRoute()
, is there a way to get a handle on the Application? Without that, I'll get a 'val environment: ApplicationEnvironment?' can't be called in this context by implicit receiver. Use the explicit one if necessary
error.Levi
11/17/2023, 4:10 PMfun Application.userRoutes() {
routing {
createUserRoute()
}
}
e5l
11/17/2023, 4:12 PMthis@userRoutes.environment
?Levi
11/17/2023, 4:16 PMthis@createUserRoute.environment
in my case.Levi
11/17/2023, 4:16 PMRoute
does have environment
but it's nullable:
open class Route( val parent: Route?, val selector: RouteSelector, val developmentMode: Boolean = false, val environment: ApplicationEnvironment? = null) : ApplicationCallPipeline
Levi
11/17/2023, 4:17 PM