Auth setup continued
This commit is contained in:
@@ -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) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user