Last active
March 28, 2016 21:27
-
-
Save emilong/c1813c3f6efb55b7dc70 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
const Content = require(“../models/content”); | |
const PdfApi = require('some-pdf-service-api-client'); | |
PdfApi.configure(process.env.PDF_API_KEY); | |
modules.export = { | |
generate: function(contentId) { | |
const content = Content.find(contentId); | |
return PdfApi.render(content.format()); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment