I am building a static web application (using Blazor) which includes a Azure Function (C#) API. This is specified when creating the the static app on the portal and is built with GitHub Actions.
In the client code I access the api with HttpClient.GetAsync($"api/{route}") where route is the function Route parameter. This all works fine!
But can I expose a public endpoint to some of the API functions? The URL /api/route returns a message from the client (Blazor) app, saying nothing is found at that location, which I can see is the result of the client app's routing.
Is this possible?
BTW, while developing, localhost:<other_port>/api/route returns the function's response.
I am on .Net 7 and using Azure functions 4 (Isolated)