How would I go about creating a small server for use internally by a Blazor-Maui Desktop app?
I'm trying to serve images that are created on the fly into an img tag:
<img src="/img-generator-service?data=576587" />
I'd like my Blazor-Maui app to instantiate a service that works as a webserver serving bytes to localhost, something like:
public async Task<byte[]> ImgGeneratorService(string data);
Or in the asp.net core pattern:
[HttpGet("img-generator-service")
public async Task<IActionResult> Get(string data);