https://kotlinlang.org logo
Title
d

DMITRY.

08/12/2021, 7:32 PM
What's _application path_? https://ktor.io/docs/serving-static-content.html#folders Root directory of my project?
o

Oliver.O

08/12/2021, 8:27 PM
When using the Kotlin multiplatform Gradle plugin to configure a JVM backend as
jvm("backend")
, the application path resolves to
build/processedResources/backend/main
, so that's a few levels below the project root directory.
m

Muhammad Usman

08/13/2021, 4:19 AM
routing {
    static("assets") {
        files("css")
    }
}
Means there should be a folder named: css inside root of your project. And accessing
<http://host>:port/assets/stylesheet.css
 would serve the file 
/css/stylesheet.css