0.3.0 • Published 4 years ago

@anarklab/expressive-controller v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@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
0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago