using EnablementBLL.ShowSpace; using EnablementSL.Parameters.ShowSpaceSubscription; using FastEndpoints; using GB5Shared.DTO.Framework.Login; using GB5Shared.DTO.Framework.ResponseStandard; using GB5Shared.FastEndPoint; namespace EnablementSL.Endpoints.ShowSpaceSubscription; // Admin visibility — every override (Self + AdminForced) authored for one Space. public class GetSpaceSubscriptionOverrides : BaseEndpoint> { private readonly IShowSpaceSubscriptionBLL _bll; public GetSpaceSubscriptionOverrides(IShowSpaceSubscriptionBLL bll) => _bll = bll; public override void Configure() { Get("/Enablement/GetSpaceSubscriptionOverrides"); AllowAnonymous(); } protected override string? GetCacheKey(GetSpaceSubscriptionOverridesParameters req, LoginDTO login) => null; protected override async Task> ExecuteAsync( GetSpaceSubscriptionOverridesParameters req, LoginDTO login, CancellationToken ct) => await _bll.GetSpaceSubscriptionOverridesAsync(req.SpaceId, login, ct).ConfigureAwait(false); }