Forum Discussion
datapool
Jan 19, 2022Copper Contributor
Blazor MAUI: How to use .net api controller from blazor server app in MAUI desktop app?
I want to transfer our current Blazor Server app into a MAUI Blazor desktop app.
However, the Blazor app consits of some controller web-api endpoints which are started with the blazor server when running as Blazor server app.
Running:
app.MapControllers();
in the Program.cs file for the Blazor app startup.
How to maintain these controllers in a MAUI Application? As there is no "mapControllers" service or call which seem to provide the same web api endpoints as the Blazor up does?
Or asks differently, as this is a normal .net 6 Controller providing and endpoint. How can this be embedded into a MAUI app?
Any comment to point me in the right direction would be helpfull.
Thanks & Regads,
Lars
No RepliesBe the first to reply