vigetlabs / gangway

A client-side API abstraction layer
MIT License
13 stars 1 forks source link

[add] Route config to individual routes #12

Closed nhunzaker closed 9 years ago

nhunzaker commented 9 years ago

Name says it all:

let api = API({
  description: 'My API',
  baseURL: 'http://example.com'
})

route(api, { users: { read: { path: 'users' } } })

api.users.read.config // => { description, baseURL, path }
averyvery commented 9 years ago

:+1:

ltk commented 9 years ago

:+1: