deprived-main-website/OpenBirchWebsite.Client/Program.cs

10 lines
328 B
C#
Raw Normal View History

2024-07-13 03:21:35 +02:00
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using MudBlazor.Services;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddMudServices();
await builder.Build().RunAsync();