Skip to content

Instantly share code, notes, and snippets.

@apaleslimghost
Last active December 11, 2017 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apaleslimghost/7310aa2711281cd5bd42f40fa3fbb0ba to your computer and use it in GitHub Desktop.
Save apaleslimghost/7310aa2711281cd5bd42f40fa3fbb0ba to your computer and use it in GitHub Desktop.
const cors = require('corser');
const promisify = require('@quarterto/promisify');
const createHandler = options => promisify(cors.create(options));
module.exports = createHandler;
module.exports.createHandler = createHandler;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment