Skip to content

Commit

Permalink
Merge pull request #937 from designfrontier/feature/add-httpapi-support
Browse files Browse the repository at this point in the history
Adds support for httpApi
  • Loading branch information
dherault committed Mar 25, 2020
2 parents 3747af7 + 9cb7029 commit 58bd028
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ServerlessOffline.js
Expand Up @@ -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,
})
}

Expand Down

0 comments on commit 58bd028

Please sign in to comment.