mycozycloud/americano — pull request #16 by BenjBouv (2013-12-28 20:20:13+00:00)
Title: Give the possibility to have several controllers for a single path by passing an array

This allows to have the following scheme in routes.coffee:

```
module.exports =
'':
get: index.index
'items':
get: [index.isLoggedIn, index.all]
delete: [index.isLoggedIn, index.delete]
```

which is equivalent to:

```
app.get 'items', index.isLoggedIn, index.all
app.delete 'items, index.isLoggedIn, index.delete
```

(FWIW, it means that Express will call first isLoggedIn, and only if isLoggedIn calls next(), it will call index.all, for the first example)