I'm trying to do something like this:
class Dispatcher < Sinatra::Base
def initialize
@foo = Foo.new
end
get '/foo/*' do
@foo.call(params[:splat])
end
end
So that URL /foo/abc/def?xxx=yyy would be like calling the Foo app with /abc/def?xxx=yyy.
This seems like it should be easy, but I haven't seen any example of it.