Initial commit

This commit is contained in:
2026-09-17 21:45:57 +02:00
commit 9160e861e0
302 changed files with 31275 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using Bookie.Application.DTOs.Teams;
using Bookie.Application.Interfaces;
using Microsoft.AspNetCore.Mvc;
namespace Bookie.Api.Controllers;
[Route("api/teams")]
public class TeamsController : CrudControllerBase<TeamDto, TeamCreateDto, TeamUpdateDto>
{
private readonly ITeamService _teams;
public TeamsController(ITeamService service) : base(service) => _teams = service;
/// <summary>Unpaged list of all teams (for dropdowns).</summary>
[HttpGet("all")]
public async Task<ActionResult<IReadOnlyList<TeamDto>>> GetAll(CancellationToken ct)
=> Ok(await _teams.GetAllAsync(ct));
}