Adding a Blazor WASM app

This commit is contained in:
2026-03-22 01:10:14 +01:00
parent ce04cd8d77
commit c86c989cb5
81 changed files with 87512 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
using CityInfo.WEB;
using CityInfo.WEB.Services;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services
.AddHttpClient<IPointOfInterestDataService, PointOfInterestDataService>(
(httpClient) => httpClient.BaseAddress = new Uri("https://127.0.0.1:7289"));
builder.Services
.AddHttpClient<ICityDataService, CityDataService>(
(httpClient) => httpClient.BaseAddress = new Uri("https://127.0.0.1:7289"));
await builder.Build().RunAsync();