Skip to content

Instantly share code, notes, and snippets.

@paulmsmith
Created March 8, 2016 20:37
Show Gist options
  • Select an option

  • Save paulmsmith/824b8d70c3e3f912e151 to your computer and use it in GitHub Desktop.

Select an option

Save paulmsmith/824b8d70c3e3f912e151 to your computer and use it in GitHub Desktop.
meh postData
app.use(function (req, res, next) {
_.merge(res.locals,{
serviceName: config.cookieText,
cookieText: config.serviceName,
path: req.params[0],
postData: (req.body ? req.body : false)
});
next();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment