feat(api): add validation to prevent duplicate accounts from being added

This commit is contained in:
Stevan Freeborn
2026-02-13 12:38:18 -06:00
parent a07fd24ee9
commit a83dbbcc54
5 changed files with 226 additions and 1 deletions
@@ -6,8 +6,10 @@ internal static class AccountsExtensions
public static RouteGroupBuilder MapAccountsEndpoints(this WebApplication app)
{
var accountsGroup = app.MapGroup(RouteGroupPrefix).RequireAuthorization();
var accountsGroup = app.MapGroup(RouteGroupPrefix)
.RequireAuthorization();
accountsGroup.MapAddEndpoint();
accountsGroup.MapConnectEndpoint();
return accountsGroup;