diff --git a/src/ServerlessOffline.js b/src/ServerlessOffline.js index 764a82ccd..624f26992 100644 --- a/src/ServerlessOffline.js +++ b/src/ServerlessOffline.js @@ -292,13 +292,13 @@ export default class ServerlessOffline { const events = service.getAllEventsInFunction(functionKey) events.forEach((event) => { - const { http, schedule, websocket } = event + const { http, httpApi, schedule, websocket } = event - if (http) { + if (http || httpApi) { httpEvents.push({ functionKey, handler: functionDefinition.handler, - http, + http: http || httpApi, }) }