trailpack-controller

    1.0.2 • Public • Published

    trailpack-controller

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

    Trailpack controller Class. Exposes Trails Application resources to the class instances.

    Trailpack controllers should extend this class, it allow you to use hapi API interface for all webserver compatible (currently trailpack-hapi and trailpack-express).

    For basic Trails controllers you should use trails-controller.

    Usage

    const Controller = require('trailpack-controller')
     
    class MyController extends Controller {
      controllerMethod (request, reply) {
        // ...
      }
    }

    Install

    License

    MIT

    Install

    npm i trailpack-controller

    DownloadsWeekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • kos