Hello, I needed this functionality and wrote this simple middleware.
Please let me know if you decide not to accept it a few suggestions to improve its chances :)
included a simple spec and usage notes as well.
Added Subdomain Router for wildcards, etc.
This can already be done with Rack::URLMap.