Skip to content

Instantly share code, notes, and snippets.

@ttacon
Created November 25, 2018 15:47
Show Gist options
  • Save ttacon/62823bc22fd8b683ec63fe93a9745383 to your computer and use it in GitHub Desktop.
Save ttacon/62823bc22fd8b683ec63fe93a9745383 to your computer and use it in GitHub Desktop.
module.exports = function (context, callback) {
callback(null, {
body: `<img src="https://api.qrserver.com/v1/create-qr-code/?size=100x100&qzone=1&data=${encodeURIComponent(context.query.text)}">`
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment