More AI changes

This commit is contained in:
moarten
2026-04-09 22:35:54 +02:00
parent 569cfbb85d
commit 87d15b99ed
24 changed files with 973 additions and 20 deletions

View File

@@ -4,14 +4,25 @@ using Microsoft.AspNetCore.Mvc;
namespace Lutra.API.Controllers
{
/// <summary>
/// Provides read-only access to verspakket resources.
/// </summary>
[ApiController]
[Route("api/verspakketten")]
[Produces("application/json")]
public class VerspakkettenController(IMediator mediator) : ControllerBase
{
/// <summary>
/// Gets a page of verspakketten.
/// </summary>
/// <param name="skip">The number of items to skip.</param>
/// <param name="take">The maximum number of items to return.</param>
/// <returns>The requested verspakket page.</returns>
[HttpGet]
public async Task<GetVerspakketten.Response> GetAll(int skip = 0, int take = 50)
[ProducesResponseType(typeof(GetVerspakketten.Response), StatusCodes.Status200OK)]
public async Task<GetVerspakketten.Response> Get(int skip = 0, int take = 50)
{
return await mediator.SendQueryAsync<GetVerspakketten.Query, GetVerspakketten.Response>(new GetVerspakketten.Query(skip, take));
}
}
}
}