Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 453 Bytes
use Rack::Static,
:urls => ['/assets', '/images'],
:root => 'public'
map '/worker-coffee.js' do
run Rack::File.new('vendor/scripts/ace/worker-coffee.js')
end
map '/worker-javascript.js' do
run Rack::File.new('vendor/scripts/ace/worker-javascript.js')
end
run lambda { |env|
[
200,
{
'Content-Type' => 'text/html',
'Cache-Control' => 'public, max-age=86400'
},
File.open('public/index.html', File::RDONLY)
]
}