hasp

0.0.2 • Public • Published

Hasp

Before and After filters/hooks for Controllers in Rendr, a framework by Airbnb

Installation

npm install hasp

Usage

In your Controller,

var hasp = require('hasp');

module.exports = {

  index: filters([ beforeFilter1, beforeFilter2 ], [ afterFilter1, afterFilter2 ], function(params, callback) {
    callback(null, {});
  })

};

Dependents (0)

Package Sidebar

Install

npm i hasp

Weekly Downloads

0

Version

0.0.2

License

BSD-2-Clause

Last publish

Collaborators

  • ktkaushik