Created
November 28, 2017 07:33
-
-
Save roelvan/2a3e7aa408a3f9e43e093207c362d43d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize our service with any options it requires | |
app.use('/tickets', createService(options), (req, res) => { | |
const doc = res.data; | |
doc.pipe(res); | |
return res.format({ 'application/pdf': () => doc.end() }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment