Skip to content

Instantly share code, notes, and snippets.

@pofider

pofider/jsreport.config.js

Last active May 31, 2016
Embed
What would you like to do?
jsreport extension adding request query string into intput data
module.exports = {
'name': 'query-string',
'main': 'queryString.js'
}
module.exports = function (reporter, definition) {
reporter.beforeRenderListeners.add('queryString', function (req) {
req.data = req.data || {}
req.data.$query = req.query
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.