Hacker News new | ask | show | jobs
by tptacek 5222 days ago
Rails 3.0 just does this; given a FooApp Sinatra object, yo can match "/foo" :to => FooApp.
1 comments

Also doable without rails:

  # In config.ru
  # App, V0, and Resque::Server are each sinatra apps
  run Rack::URLMap.new({
    "/"       => App.new,
    "/v0"     => V0.new,
    "/resque" => Resque::Server.new,
  })