Skip to content

Instantly share code, notes, and snippets.

@rocknrollMarc
Forked from achiurizo/apps.rb
Created September 1, 2014 15:58
Show Gist options
  • Save rocknrollMarc/a44fce8267a17f76ef61 to your computer and use it in GitHub Desktop.
Save rocknrollMarc/a44fce8267a17f76ef61 to your computer and use it in GitHub Desktop.
# foo.rb
class Foo < ::Sinatra::Base
class << self
def dependencies; []; end
def setup_application!; end
end
get '/' do
'wubwub'
end
end
# config/apps.rb
Padrino.mount("Main::App", :app_file => File.expand_path('../app/app.rb', __FILE__).to('/')
Padrino.mount("Foo", :app_file => File.expand_path('../foo.rb', __FILE__).to('/foo')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment