strindberg
05/26/2023, 10:03 AMembeddedServer
. This snippet compiles, but does not affect the root path - the application still uses /
as root path:
fun main() {
embeddedServer(
Netty,
port = 8097,
configure = { applicationEngineEnvironment { rootPath = "/api" } },
module = Application::main
).start(wait = true)
}
Does anyone know it it's possible to configure rootPath
when using embeddedServer?
Aleksei Tirman [JB]
05/26/2023, 11:47 AMrootPath
property is only applied for the servlet containers. What behavior do you expect with the above code?strindberg
05/26/2023, 12:43 PMdavid dereba
05/26/2023, 5:04 PMstrindberg
05/26/2023, 7:44 PMapplication.conf
, but I can find no way of doing the same kind of configuration in EmbeddedServer.david dereba
05/27/2023, 9:48 AMAleksei Tirman [JB]
05/29/2023, 9:09 AMembeddedServer(
Netty,
applicationEngineEnvironment {
rootPath = "/api"
connector {
port = 8097
}
module(Application::main)
}
).start(wait = true)
strindberg
05/29/2023, 11:29 AM