@anarklab/expressive-controller
v0.3.0
Published
Controller extensible for expressive
Downloads
8
Readme
@anarklab/expressive-controller
Install
yarn add @anarklab/expressive-controller
# or if you use npm
npm install @anarklab/expressive-controller --save
Usage
const Books = require('./repository')
const { Controller } = require('@anarklab/expressive-controller')
const BookControoler = Controller(Books)
module.exports = Controller(Books)
module.exports = {
index: BookControoler.index,
show: BookControoler.show,
store: BookControoler.store,
update: BookControoler.save,
destroy: BookControoler.remove
}
This exports an object with the methods below:
{
index,
show,
store,
update,
destroy
}
TO DO
- [ ] More detailed documentation
- [ ] CHANGELOG
- [ ] CONTRIBUTING
- [ ] Tests