sinatra/sinatra-contrib — pull request #138 by ismith (2014-05-29 23:02:25+00:00)
Title: Add Sinatra::Subroute, allowing an app to make a request to another endpoint in the app.

Allows for, e.g.:

```ruby
class App < Sinatra::Application
helpers Sinatra::Subroute
get '/target' do
...
end

get '/subrouted' do
subroute!('/target')
end
end
```

subroute! can also add or modify request params and the HTTP verb used.

(Originally from https://github.com/lookout/lookout-rack-utils)