Closed gentledepp closed 4 months ago
Describe the bug
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
routePrefix
host.json
Add some function that registers at the root:
[FunctionName("redirector")] public static async Task<IActionResult> Run( [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "{*ignored}")] HttpRequest req, ILogger log) { var url = $"someotherscheme://{req.Host}{req.Path}{req.QueryString}"; log.LogInformation($"Redirecting to {url}"); return new RedirectResult(url); }
Error in processing api build artifacts: the host.json file cannot specify a http.routePrefix value other than 'api'.
However, the docs state that this should be possible: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=python-v2%2Cisolated-process%2Cnodejs-v4%2Cfunctionsv2&pivots=programming-language-csharp#customize-the-http-endpoint
Expected behavior Have ny
Screenshots If applicable, add screenshots to help explain your problem.
Device info (if applicable):
Additional context Add any other context about the problem here.
Forget it. This was because I was following the tutorial:
which suggests adding a new funciton app using the VS Code extension which uses the deprecated model....
Describe the bug
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
routePrefix
inhost.json
file to empty stringAdd some function that registers at the root:
However, the docs state that this should be possible: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=python-v2%2Cisolated-process%2Cnodejs-v4%2Cfunctionsv2&pivots=programming-language-csharp#customize-the-http-endpoint
Expected behavior Have ny
Screenshots If applicable, add screenshots to help explain your problem.
Device info (if applicable):
Additional context Add any other context about the problem here.