Auth setup continued

This commit is contained in:
2026-05-02 16:06:08 -04:00
parent 33eee17c43
commit ec6a8c446a
5 changed files with 41 additions and 15 deletions

View File

@@ -14,16 +14,13 @@ public static class AuthEndpoints
});
app.MapPost("/user/register", async (AuthRegister request, APIAuthService service) =>
{
throw new NotImplementedException();
return Results.Ok();
var token = await service.UserRegisterAsync(request);
return token != null ? Results.Ok(token) : Results.Unauthorized();
});
app.MapPost("/server/verify/user", async (AuthUserVerify request, APIAuthService service) =>
{
throw new NotImplementedException();
});
app.MapPost("/server/user/profile", async (AuthUserVerify request, APIAuthService service) =>
{
throw new NotImplementedException();
bool valid = await service.ServerVerifyUser(request);
return Results.Ok(valid);
});
app.MapPost("/server/verify/license", async (AuthServerLicense request, APIAuthService service) =>
{