Skip to content

Instantly share code, notes, and snippets.

@markmarkoh
Created October 24, 2011 02:16
Show Gist options
  • Select an option

  • Save markmarkoh/1308233 to your computer and use it in GitHub Desktop.

Select an option

Save markmarkoh/1308233 to your computer and use it in GitHub Desktop.
sinatra
require 'rubygems'
require 'sinatra'
require 'json'
mime_type :manifest, 'text/cache-manifest'
get '/*.*' do
#content_type :manifest
send_file('./' + params[:splat].join('.'))
end
get '/some_other_route' do
...
end
...
@rkh
Copy link

rkh commented Oct 30, 2011

You could also change the public_folder setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment