Closed victor-am closed 6 years ago
This PR introduces a namespace feature that works like this:
api.namespace('admin').list('users') // => admin/users api.namespace('blog_posts/:id', { id: 1 }).list('users') // => blogs/1/users
The resource feature now works on top of the namespace function, so this:
resource
namespace
api.resource('blogPosts', 1)
Is the same as this:
api.namespace('blog_posts/:id', { id: 1 })
Closes #1
This PR introduces a namespace feature that works like this:
The
resource
feature now works on top of thenamespace
function, so this:Is the same as this:
Pending
Closes #1