您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
763B

  1. using Campaign_Tracker.Server.Authorization;
  2. using Campaign_Tracker.Server.ElectionCycles;
  3. using Microsoft.AspNetCore.Authorization;
  4. using Microsoft.AspNetCore.Mvc;
  5. namespace Campaign_Tracker.Server.Controllers;
  6. [ApiController]
  7. [Authorize(Policy = ApplicationPolicy.ClientServicesAccess)]
  8. [Route("api/election-cycles/kanban")]
  9. public sealed class ElectionCycleKanbanController : ControllerBase
  10. {
  11. private readonly IElectionCycleKanbanReadModel _kanban;
  12. public ElectionCycleKanbanController(IElectionCycleKanbanReadModel kanban)
  13. {
  14. _kanban = kanban;
  15. }
  16. [HttpGet]
  17. public async Task<ActionResult<ElectionCycleKanbanBoard>> Get(
  18. CancellationToken cancellationToken)
  19. => Ok(await _kanban.GetAsync(cancellationToken));
  20. }

Powered by TurnKey Linux.