From b41297f9726c505d3aff08cb42bd2b98d5c6b51b Mon Sep 17 00:00:00 2001 From: Chris Chen Date: Wed, 24 Jun 2026 19:30:33 -0700 Subject: [PATCH] feat(finance): Form 990 functional-expenses report endpoint --- .../Controllers/Form990ReportController.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 API/ROLAC.API/Controllers/Form990ReportController.cs diff --git a/API/ROLAC.API/Controllers/Form990ReportController.cs b/API/ROLAC.API/Controllers/Form990ReportController.cs new file mode 100644 index 0000000..f38fb69 --- /dev/null +++ b/API/ROLAC.API/Controllers/Form990ReportController.cs @@ -0,0 +1,18 @@ +using Microsoft.AspNetCore.Mvc; +using ROLAC.API.Authorization; +using ROLAC.API.Services; + +namespace ROLAC.API.Controllers; + +[ApiController] +[Route("api/form990-report")] +[HasPermission(Modules.Form990Report, PermissionActions.Read)] +public class Form990ReportController : ControllerBase +{ + private readonly IForm990ReportService _svc; + public Form990ReportController(IForm990ReportService svc) => _svc = svc; + + [HttpGet("functional-expenses")] + public async Task FunctionalExpenses([FromQuery] DateOnly? from, [FromQuery] DateOnly? to) + => Ok(await _svc.GetFunctionalExpenseStatementAsync(from, to)); +}