Skip to content

Instantly share code, notes, and snippets.

@foca
Created December 4, 2011 19:38
Show Gist options
  • Save foca/1431089 to your computer and use it in GitHub Desktop.
Save foca/1431089 to your computer and use it in GitHub Desktop.
How to stack multiple sinatra applications
require "sinatra/base"
class Foo < Sinatra::Base
get "/" do
"hola"
end
get "/foo" do
pass
end
end
class Bar < Sinatra::Base
get "/foo" do
"foo"
end
end
use Foo
run Bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment