mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Fix for #3669: Azure Quickstart fn returns nothing
Add an out HTTP event that specifies the `res` variable on the context allowing the function specified in `handler.js` to run as expected in Azure.
This commit is contained in:
parent
1ce97a0168
commit
701d85e17e
@ -34,20 +34,24 @@ plugins:
|
||||
# - exclude-me-dir/**
|
||||
|
||||
functions:
|
||||
hello:
|
||||
hello:
|
||||
handler: handler.hello
|
||||
events:
|
||||
events:
|
||||
- http: true
|
||||
x-azure-settings:
|
||||
authLevel : anonymous
|
||||
- http: true
|
||||
x-azure-settings:
|
||||
diections: out
|
||||
name: res
|
||||
|
||||
# The following are a few examples of other events you can configure:
|
||||
#
|
||||
# events:
|
||||
# events:
|
||||
# - queue: YourQueueName
|
||||
# x-azure-settings:
|
||||
# connection : StorageAppSettingName
|
||||
# - blob:
|
||||
# x-azure-settings:
|
||||
# name: bindingName
|
||||
# direction: in
|
||||
# direction: in
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user