Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (12 sloc) 0.321 kb
require 'rubygems'
require 'sinatra'
CACHE_PERIOD = ONE_MONTH = 1 * 60 * 60 * 24 * 30
before do
headers['Cache-Control'] = "public, max-age=#{CACHE_PERIOD}"
end
get "/favicon.ico" do
end
get %r{/(.*)} do |path|
File.open(File.join('public', path.gsub(/\/^/, ""), 'index.html'))
end
run Sinatra::Application
Jump to Line
Something went wrong with that request. Please try again.