crepe/crepe — pull request #51 by davidcelis (2014-07-17 18:16:45+00:00)
Title: Allow routing to arbitrary Rack applications

This builds off of @kainosnoema's work in #49 and allows routing to Rack
applications using HTTP verbs:

```ruby
class HelloWorld
def call(env)
[200, { 'Content-Type' => 'text/plain'}, ['Hello, world!']]
end
end

class API < Crepe::API
scope :hello
get HelloWorld.new
end

# Or...
get :hello, to: HelloWorld.new
end
```

As long as it responds to `call`, it's fair game. However, a few notes:

* One potential syntax could be `get hello: HelloWorld.new`. The current
implementation of `Crepe::API.route` will end up tossing
`{:hello=>#