Is there a way to have multiple modules supply the...
# ktor
z
Is there a way to have multiple modules supply their resources to the same static resources path?
Example :module-a resources/global.css :module-b resources/alternate.css in order to have /static/global.css /static/alternate.css
What I'm seeing so far is only the first
staticResources
block with that
remotePath
has any effect
a
Are the resources from both modules included in the server's classpath?
z
Yes, I think so. They're both pretty simple gradle projects, just enough config to get KMP. Only uses the commonMain and jvmMain sourcesets, but all of the resources are in commonMain. Referenced in the server project with implementation(project())
a
I mean, if those resources are on the server's classpath, then you can serve them both with one
staticResources
call.