Skip to content

Instantly share code, notes, and snippets.

@rtomayko
Forked from bmizerany/base.rb
Created January 30, 2009 01:56
Show Gist options
  • Save rtomayko/54886 to your computer and use it in GitHub Desktop.
Save rtomayko/54886 to your computer and use it in GitHub Desktop.
class Foo < Sinatra::Base
host_name "sinatrarb.com"
user_agent /Mosaic/
provides :xml
get '/' do
"Welcome!"
end
get '/' do
"You are not to be welcomed!"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment