I have the following code, I want to expose my api...
# ktor
e
I have the following code, I want to expose my api documentation in the root and provide my api under the /api path, the api is working well and the root index.html is loaded but the css and js files returns 404 errors and can't be loaded
Copy code
@JvmStatic
        fun main(args: Array<String>) {
            val port = System.getenv("PORT")?.toInt() ?: 8080
            embeddedServer(Netty, port) {
                routing {
                    static("/") {
                        files("fonts")
                        files("images")
                        files("stylesheets")
                        files("javascripts")
                        default("index.html")
                    }
                    get("/api/{email}") {
                        ...
                    }
                }
            }.start()