This commit is contained in:
Maarten Zeeman
2025-08-21 13:58:58 +02:00
commit bf8c71c504
27 changed files with 809 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using Cortex.Mediator;
using Lutra.Application.Verspakketten;
using Microsoft.AspNetCore.Mvc;
namespace Lutra.API.Controllers
{
[ApiController]
[Route("api/verspakketten")]
public class VerspakkettenController(IMediator mediator) : ControllerBase
{
[HttpGet]
public async Task<GetVerspakketten.Response> GetAll(int skip = 0, int take = 50)
{
return await mediator.SendQueryAsync<GetVerspakketten.Query, GetVerspakketten.Response>(new GetVerspakketten.Query(skip, take));
}
}
}