feat(api): add protected connect account endpoint

This commit is contained in:
Stevan Freeborn
2026-02-12 13:12:14 -06:00
parent b4744076b7
commit 71d14e9fe3
5 changed files with 49 additions and 0 deletions
@@ -0,0 +1,15 @@
namespace FiscalOS.API.Accounts;
internal static class AccountsExtensions
{
private const string RouteGroupPrefix = "/accounts";
public static RouteGroupBuilder MapAccountsEndpoints(this WebApplication app)
{
var accountsGroup = app.MapGroup(RouteGroupPrefix).RequireAuthorization();
accountsGroup.MapConnectEndpoint();
return accountsGroup;
}
}