using HyperBooru.ApiClient; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; namespace HyperBooru.Client; internal class Program { static async Task Main(string[] args) { var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.Services.AddSingleton(sp => new(new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) })); await builder.Build().RunAsync(); } }