2022-06-20 19:49:47 +02:00
|
|
|
using System.Text.Json;
|
2022-04-23 20:29:55 +02:00
|
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|
|
|
using MudAdmin;
|
|
|
|
using MudBlazor.Services;
|
|
|
|
|
|
|
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
|
|
|
builder.RootComponents.Add<App>("#app");
|
|
|
|
builder.RootComponents.Add<HeadOutlet>("head::after");
|
|
|
|
|
2022-06-19 20:10:34 +02:00
|
|
|
builder.Services.AddScoped(sp => new HttpClient
|
|
|
|
{
|
|
|
|
BaseAddress = new Uri(builder.Configuration.GetValue<string>("BaseUrl"))
|
|
|
|
});
|
2022-04-23 20:29:55 +02:00
|
|
|
builder.Services.AddMudServices();
|
|
|
|
|
|
|
|
await builder.Build().RunAsync();
|