Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 395 Bytes
require 'sinatra'
set :public_folder, File.dirname(__FILE__) + '/static'
get '/' do
if request.host == "blog.simpleworker.com"
redirect "#{request.scheme}://blog.iron.io#{request.path}"
return true
end
erb :hello
end
get '*' do
if request.host == "blog.simpleworker.com"
redirect "#{request.scheme}://blog.iron.io#{request.path}"
return true
end
redirect '/'
end
Something went wrong with that request. Please try again.