Skip to content

Instantly share code, notes, and snippets.

@mirontoli
Last active January 9, 2020 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirontoli/95d9c9fe4bbd4aad27d936baa288a7d1 to your computer and use it in GitHub Desktop.
Save mirontoli/95d9c9fe4bbd4aad27d936baa288a7d1 to your computer and use it in GitHub Desktop.
{
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": ["options", "get"]
},
{
"type": "http",
"direction": "out",
"name": "res"
},
{
"type": "table",
"name": "inputTable",
"tableName": "metadata",
"connection": "AzureWebJobsStorage",
"direction": "in",
"filter": "(PartitionKey eq '{package}')"
}
]
}
module.exports = async function(context, req) {
context.res = {
body: context.bindings.inputTable
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment