I’m putting together a web site that is static except for a single POST handler. I started by putting this in
[[statics]] guest_path = "/static" url_prefix = "/"
That way, the home page and everything under it is served by Fly’s proxy. However, I don’t see a way to do that but still allow for the single POST handler, which should be at
This seems like a simple and not uncommon use case.
Is this possible now, or do I have to run my own web server? That would be a shame considering that Fly has such a nice proxy. If it’s not possible yet, perhaps one could declare an “anti-statics” section, i.e. a list of
url_prefixes that should not be served by the proxy. Even better would be something compositional, i.e. a simple declarative language for adding to and subtracting from sets of URLs to be served by proxy, e.g.
url_prefix = difference("/", "/update").