- proxies.json with routes
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"resource": {
"matchCondition": {
"methods": ["GET", "POST"],
"route": "{resource}"
},
"backendUri": "https://jsonplaceholder.typicode.com/{resource}",
"responseOverrides": {
"response.headers.Content-Type": "application/json",
"response.headers.x-api-key": "%SECRET%"
}
}
}
}
-
fake api key setup by editing local.settings.json
-
edit local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "node",
"SECRET": "my_secret"
}
}