Skip to content

Instantly share code, notes, and snippets.

@geekdada
Created November 4, 2019 02:21
Show Gist options
  • Save geekdada/27794f63c044af092cbe4582e7d1212d to your computer and use it in GitHub Desktop.
Save geekdada/27794f63c044af092cbe4582e7d1212d to your computer and use it in GitHub Desktop.
Deploy Surgio gateway to Azure Function
const createHandler = require("azure-function-express").createHandler;
const gateway = require("surgio/build/gateway");
// Binds the express app to an Azure Function handler
module.exports = createHandler(gateway.createHttpServer());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment