I have a static route that works fine, but I would like to add a default document for any/all sub folders - default seems to only be able to take a fixed file to serve, with no way of asking it to look in the request directory.
The following will serve any static file under the "/export" directory when "/export/..." is requested, but if not found then the file "/index.html" is always returned instead of "export/.../index.html".
static("export") {
files("export")
default("index.html")
}
Is there any way to define this? It seems like a standard feature for a web server, so I may have just missed something obvious...