trailsjs/trails-controller

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# trails-controller

[![Gitter][gitter-image]][gitter-url]
[![NPM version][npm-image]][npm-url]
[![Build status][ci-image]][ci-url]
[![Dependency Status][daviddm-image]][daviddm-url]
[![Code Climate][codeclimate-image]][codeclimate-url]
[![Follow @trailsjs on Twitter][twitter-image]][twitter-url]

### Note: This module is deprecated in Trails v2. It will be merged into [trailsjs/trails](https://github.com/trailsjs/trails) in v3.

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

## Usage

```js
const Controller = require('trails-controller')

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

#### Install

## License
[MIT](https://github.com/trailsjs/trails/blob/master/LICENSE)

[npm-image]: https://img.shields.io/npm/v/trails-controller.svg?style=flat-square
[npm-url]: https://npmjs.org/package/trails-controller
[ci-image]: https://img.shields.io/travis/trailsjs/trails-controller/master.svg?style=flat-square
[ci-url]: https://travis-ci.org/trailsjs/trails-controller
[daviddm-image]: http://img.shields.io/david/trailsjs/trails-controller.svg?style=flat-square
[daviddm-url]: https://david-dm.org/trailsjs/trails-controller
[codeclimate-image]: https://img.shields.io/codeclimate/github/trailsjs/trails-controller.svg?style=flat-square
[codeclimate-url]: https://codeclimate.com/github/trailsjs/trails-controller
[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square
[gitter-url]: https://gitter.im/trailsjs/trails
[twitter-image]: https://img.shields.io/twitter/follow/trailsjs.svg?style=social
[twitter-url]: https://twitter.com/trailsjs