In your app launching file server.js, add the following
const jsreport = require('jsreport')() jsreport.on('before-express-configure', () => { jsreport.express.app.use('/api/report', (req, res, next) => { console.log('do what you want with req') next() }) })B