Add register page, associated view model and successfully call service that just sends back received data

This commit is contained in:
2026-01-26 21:53:09 +01:00
parent f743332a1e
commit 6c77fabe47
9 changed files with 116 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using blazor_mini_sandbox;
using Sandbox;
using Sandbox.Services.AuthService;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
@@ -8,4 +9,6 @@ builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddScoped<IAuthService, AuthService>();
await builder.Build().RunAsync();