I started a new project in IntelliJ - "multiplatform full stack web application". By default, it has a ktor route
static("/static") { resources() }
, which serves the compiled JS. Problem is: it serves all resources! Insecure, no? How do I change the gradle file to copy the compiled JS into a subdir? (More in thread)
robnik
02/25/2022, 10:20 PM
In the ktor/kotlin code, this is easy. I can say:
resources("web")
and it will only serve resources starting with "web/". But Gradle is opaque to me, and I don't know how to change it to put the JS output there. Maybe there is another way to filter what