go-martini/martini — pull request #334 by wilk (2014-12-31 17:47:16+00:00)
Title: [Proposal] router.Route shortcut

In ExpressJS 4.x there's the route shortcut that lets you to add HTTP method handlers for a specific route.
I've just added this capability to Martini's router, for each HTTP method.
With this feature it will possible to define routes like in the following example:

```go
app := martini.Classic()
app.Route("/hello").Get(func() string {
return "GET World"
}).Post(func() string {
return "POST World"
})
```

GET and POST handlers are now attached to the "/hello" route.

For more info: http://expressjs.com/4x/api.html#router.route