ftybr-add-to-req

0.0.2 • Public • Published

ftybr-add-to-req Build Status

To create your middleware object:

var addToReq = require('ftybr-add-to-req');

Once you've instantiated it, you may add this middleware to your ftybr router:

router.registerMiddleware(addToReq('someData', ['win']));

This middleware will add the specified object to each request object

Readme

Keywords

none

Package Sidebar

Install

npm i ftybr-add-to-req

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • connrs