Created
May 31, 2012 10:58
-
-
Save baranov1ch/2842655 to your computer and use it in GitHub Desktop.
Stupid redirect-webapp
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 'rubygems' if RUBY_VERSION < "1.9" | |
require 'sinatra/base' | |
class TestApp < Sinatra::Base | |
get '/' do | |
"Hello World" | |
end | |
get '/redfrom' do | |
redirect '/redto' | |
end | |
get '/redto' do | |
"Redirected here!!!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment