When using `default` to specify a default file, sh...
# ktor
a
When using
default
to specify a default file, shouldn't it be served, when I call an otherwise unhandled endpoint?
For example I have:
Copy code
static {
        file("/", "app/index.html")
        default("app/index.html")

        file("/favicon.ico", "app/favicon.ico")
    }
The first
file
correctly serves the html when I hit /
But I was expecting
/test
to return the default resource
o
Hmm, default file means what is served when you ask for a folder. I don’t think we have fallback there, but you can try
file("*", "index.html")
a
That seems to work, thanks.
But it also need
file("/", "app/index.html")
to cover the bare root
/