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:
RichardSlater 2017-05-24 19:55:05 +01:00
parent 1ce97a0168
commit 701d85e17e

View File

@ -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