2.0.0 • Published 7 years ago
trails-controller v2.0.0
trails-controller
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 () {
// ...
}
}