有人知道我在这里想念的吗?
我希望我的代理将所有请求路由到我的azure函数根URL上。
这样这个链接https://myfunction.azurewebsites.net/
与此链接https://myfunction.azurewebsites.net/MYShinyNewFunction相同
这是我的proxy.json
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"Root URI to Redirector Trigger Function": {
"matchCondition": {
"route": "/{*path}",
"methods": [
"GET"
]
},
"backendUri": "https://localhost/{*path}"
}
}
}
最佳答案
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {
"Root URI to Redirector Trigger Function": {
"matchCondition": {
"route": "/{*path}",
"methods": [
"GET"
]
},
"backendUri": "https://myfunction.azurewebsites.net/ActualFunctionName"
}
}
}
弄清楚了