UNPKG

rig

Version:

A barepipe platform for node webapps

21 lines (18 loc) 438 B
/*jslint forin: true */ module.exports = function (options) { 'use strict'; /** * @name context * @type {Object} * @memberOf req * @instance * @description The running context of the request */ return function contextualizer(req, res, next) { var key; req.context = {}; // start by taking all the context configs req.context = options; next(); }; };