UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

20 lines (15 loc) 637 B
'use strict'; const fdk = require('@serverless/fdk'); const getConfigureConfig = require('./getConfigureConfig'); function registerFunctionsToEventGateway(service, eventsRootUrl, configurationRootUrl, localEmulatorRootUrl) { const gateway = fdk.eventGateway({ url: eventsRootUrl, configurationUrl: configurationRootUrl, }); const configureConfig = getConfigureConfig(service, localEmulatorRootUrl); return gateway.configure(configureConfig); } module.exports = registerFunctionsToEventGateway;