Still invalid submit. Tried to add an API route to call service through http.

This commit is contained in:
2026-01-27 22:13:09 +01:00
parent b3182b3ae7
commit 803a9f86e1
2 changed files with 7 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
using Sandbox.Components;
using Sandbox.Models.ViewModels;
using Sandbox.Services.AuthService;
var builder = WebApplication.CreateBuilder(args);
@@ -23,6 +24,9 @@ app.UseHttpsRedirection();
app.UseAntiforgery();
app.MapPost("/register", async (UserRegister request, IAuthService authService) =>
await authService.Register(request.Email, request.Password));
app.MapStaticAssets();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();