2.0.0 • Published 7 years ago

trails-controller v2.0.0

Weekly downloads
47
License
MIT
Repository
github
Last release
7 years ago

trails-controller

Gitter NPM version Build status Dependency Status Code Climate Follow @trailsjs on Twitter

Note: This module is deprecated in Trails v2. It will be merged into trailsjs/trails in v3.

Trails Controller Class. Exposes Trails Application resources to the class instances. Controllers should extend this Class.

Usage

const Controller = require('trails-controller')

class MyController extends Controller {
  controllerMethod () {
    // ...
  }
}

Install

License

MIT