Still invalid submit. Tried to add an API route to call service through http.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user