You can serve static files with Sinatra by placing them in public/ (by default) — I have an index.html in there at the moment, but how can I make the root point to that file without having to parse it as a template?
To be clear, I can access /index.html successfully, and I’d like to route / to be the same static file, but without redirecting. Any idea how to do this?
Probably a better answer will eventually come, until then this is my shot at it.
If this is not what you want:
You might do something like this:
I’d go with the first one though, Not sure why you want to avoid that redirect