I have fixed this doing ``` @JvmStatic fun...
# ktor
e
I have fixed this doing
Copy code
@JvmStatic
        fun main(args: Array<String>) {
            val port = System.getenv("PORT")?.toInt() ?: 8080
            embeddedServer(Netty, port) {
                routing {
                    static {
                        staticRootFolder = File("./static")
                        files("./")
                        default("index.html")
                    }
                    get("/api/{email}") {
                        ...
                    }
                }
            }.start()
        }
for sure not the best way I guess but this worked for me