Why not just mount them under /app in your
config.ru?
Here's what one of my configs looks like (top-module name changed to
MyFancyApp in order to protect the innocent):
*~*~*~*~*~*
config.ru *~*~*~*~*~*~*~*
require 'rubygems'
require 'bundler'
Bundler.require(:default)
$:.unshift File.expand_path(File.dirname(__FILE__))
require 'my_fancy_app'
map '/admin' do
run MyFancyApp::Admin
end
map '/api/v1' do
run MyFancyApp::API::VersionOne
end
map '/api/v2' do
run MyFancyApp::API::VersionTwo
end
*~*~*~*~*~*
config.ru *~*~*~*~*~*~*~*
--
Jason Rogers
> --
> You received this message because you are subscribed to the Google Groups "sinatrarb" group.
> To post to this group, send email to
sina...@googlegroups.com.
> To unsubscribe from this group, send email to
sinatrarb+...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/sinatrarb?hl=en.
>