Created
June 18, 2014 00:43
-
-
Save abcnever/e41b79ace313d7b325c3 to your computer and use it in GitHub Desktop.
basic sinatra server for cordova app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
set :public_dir, File.dirname(__FILE__) + '/www' | |
get '/*' do | |
send_file File.expand_path('index.html', settings.public_dir) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment