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
Probably a better answer will eventually come, until then this is my shot at it.
If this is not what you want:
get '/' do
redirect '/index.html'
end
You might do something like this:
get '/' do
File.new('public/index.html').readlines
end
I'd go with the first one though, Not sure why you want to avoid that redirect