is there a better way to do this? ``` stati...
# ktor
h
is there a better way to do this?
Copy code
static("/") {
            files(File("static"))
            file("foo", "static/index.html")
            file("bar", "static/index.html")
            file("bazz", "static/bazz.html")
            default(File("static", "index.html"))
        }
basically auto append .html for specific static files if without the current file extension returns a 404, and how to auto redirect stuff like /foo and /bar to a specific file (for using something like react).