namespace IOL.GreatOffice.Api.Endpoints.Internal; [Authorize] [ApiController] [ApiExplorerSettings(IgnoreApi = true)] [ApiVersionNeutral] public class BaseRoute : ControllerBase { /// /// User data for the currently logged on user. /// protected LoggedInUserModel LoggedInUser => new() { Username = User.FindFirstValue(AppClaims.NAME), Id = User.FindFirstValue(AppClaims.USER_ID).AsGuid(), }; }