Finalize API envelopes and close validation drift tasks
This commit is contained in:
@@ -51,13 +51,12 @@ public static class AuthEndpoints
|
||||
|
||||
await PlayerIdentityExtensions.SignInPlayerAsync(ctx, player);
|
||||
|
||||
return Results.Ok(new
|
||||
{
|
||||
return Results.Ok(new AuthSessionResponse(
|
||||
player.Id,
|
||||
player.Username,
|
||||
player.DisplayName,
|
||||
player.IsAdmin
|
||||
});
|
||||
));
|
||||
});
|
||||
|
||||
group.MapPost("/login", async ([FromBody] LoginRequest request, HttpContext ctx, AppDbContext db) =>
|
||||
@@ -79,13 +78,12 @@ public static class AuthEndpoints
|
||||
|
||||
await PlayerIdentityExtensions.SignInPlayerAsync(ctx, player);
|
||||
|
||||
return Results.Ok(new
|
||||
{
|
||||
return Results.Ok(new AuthSessionResponse(
|
||||
player.Id,
|
||||
player.Username,
|
||||
player.DisplayName,
|
||||
player.IsAdmin
|
||||
});
|
||||
));
|
||||
});
|
||||
|
||||
group.MapPost("/logout", async (HttpContext ctx) =>
|
||||
|
||||
Reference in New Issue
Block a user