490bbbe942
Public host is now auth-free: no AuthBlocks, no DeepDrftCms ref, no stealth routing. MainLayout restored to full chrome. DeepDrft.Content/.Cms HttpClients wired on Manager.
20 lines
614 B
C#
20 lines
614 B
C#
using DeepDrftWeb.Client;
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|
using MudBlazor.Services;
|
|
|
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
|
|
|
Console.WriteLine(builder.HostEnvironment.BaseAddress);
|
|
|
|
var contentApiUrl = builder.Configuration["ApiUrls:ContentApi"] ?? "https://localhost:7001";
|
|
|
|
builder.Services.AddMudServices();
|
|
|
|
Startup.ConfigureApiHttpClient(builder.Services, builder.HostEnvironment.BaseAddress);
|
|
Startup.ConfigureContentServices(builder.Services, contentApiUrl);
|
|
Startup.ConfigureDomainServices(builder.Services);
|
|
|
|
var app = builder.Build();
|
|
|
|
await app.RunAsync();
|