Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 373 Bytes
require 'sinatra'
require 'sinatra/subdomain'
# This is an example of a classic application that uses sinatra-subdomain. Start it using
# `shotgun -I lib example_classic_app.rb`. Then visit http://smackaho.st:9393 and
# http://foo.smackaho.st:9393 to use the application.
subdomain :foo do |sub|
get '/' do
"You are on: #{sub}"
end
end
get '/' do
"Home!"
end