railsware/js-routes — pull request #135 by le0pard (2014-12-08 10:05:21+00:00)
Title: Routes path specs

Based by #123 , but here we don't have separate function `spec` to get spec of route. We override `toString` for route function, and this give for us to get function spec in this way:

```js
Routes.users_path // => "/users(.:format)"
Routes.users_path.params // => ['options']
Routes.users_path() // => "/users"
Routes.user_path // => "/users/:id(.:format)"
Routes.user_path.params // => ['_id', 'options']
Routes.user_path(1) // => "/users/1"
```