Skip to content

Instantly share code, notes, and snippets.

Created December 7, 2018 03:01
What would you like to do?
Dropbox WebHook
// How Dropbox handles webhooks:
router.get('/api/dropbox/webhook', function (ctx, next) {
return new HTTPRequest({ ctx }).handle((request) => {
ctx.set('Content-Type', 'text/plain')
ctx.set('X-Content-Type-Options', 'nosniff')
ctx.body =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment