using DodoSSH.Api.Features.Meta;
namespace DodoSSH.Api.Setup;
///
/// The single, explicit list of every endpoint module.
///
///
/// Deliberately not reflection-based discovery. Explicit registration gives predictable startup,
/// survives trimming, and makes every route greppable — and a route that silently disappears
/// because an assembly was not scanned is a genuinely nasty failure. The cost is one line per
/// module.
///
internal static class EndpointRegistration
{
internal static WebApplication MapDodoEndpoints(this WebApplication app)
{
app.MapMetaEndpoints();
// Registered as each feature lands:
// Identity — /me, enrollment, key rotation, devices
// Directory — public-key lookup
// Vaults — grants, rekey, ACL
// Sync — pull and push
// Relay — tickets and the WebSocket
// Teams, Audit, Admin
return app;
}
}