Created
August 23, 2018 16:28
-
-
Save midnightcodr/5b79a976a7d29b3d859ad3069e928979 to your computer and use it in GitHub Desktop.
output-svg-in-hapijs-17
This file contains hidden or 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
handler: (request, h) => { | |
const captcha = svgCaptcha.create({ | |
size: 5 | |
}) | |
return h.response(captcha.data).header('Content-Type', 'image/svg+xml') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment