feat: Blazor WebAssembly 클라이언트 추가

This commit is contained in:
2026-06-30 18:18:32 +09:00
parent eaacbc8d7f
commit 65c5f19a2f
7 changed files with 86 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using MudBlazor.Services;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
// MudBlazor (WASM 측 인터랙티브 컴포넌트용)
builder.Services.AddMudServices();
// API 호출용 HttpClient — 호스트 base(`/taxbaik/`) 기준
builder.Services.AddScoped(sp => new HttpClient
{
BaseAddress = new Uri(builder.HostEnvironment.BaseAddress)
});
builder.Services.AddAuthorizationCore();
await builder.Build().RunAsync();