This repository was archived by the owner on Feb 8, 2024. It is now read-only.
v0.10.0 🍁
Features
- Improve docs and tests a4b6e8d
- Add more tests for
.resources()e21a55a - Add child scope creator for
.crud()d3f5f81
const routes = createRest(root => {
// GET /demo read()
// POST /demo create()
// PUT /demo update()
// DELETE /demo destroy()
root.crud('demo', DemoController, {}, demo => {
// GET /demo/example example()
demo.get('example', function example(){})
// GET /demo/foobar
// POST /demo/foobar
// PUT /demo/foobar
// DELETE /demo/foobar
demo.crud('foobar', FooBarController, {}, foobar => {
// POST /demo/foobar/band band()
foobar.post('band', function band(){})
})
})
})