using Cortex.Mediator; using Lutra.Application.Supermarkten; using Lutra.Application.Verspakketten; using Microsoft.AspNetCore.Mvc; namespace Lutra.API.Controllers; /// /// Provides a dedicated endpoint group for Supermarkt-related operations. /// /// /// This controller is intentionally empty for now. Endpoints will be added when the Supermarkt /// use cases are implemented. /// [ApiController] [Route("api/supermarkten")] [Produces("application/json")] public class SupermarktenController(IMediator mediator) : ControllerBase { /// /// Gets a page of supermarkten. /// /// The number of items to skip. /// The maximum number of items to return. /// The requested verspakket page. [HttpGet] [ProducesResponseType(typeof(GetSupermarkten.Response), StatusCodes.Status200OK)] public async Task Get(int skip = 0, int take = 50) { return await mediator.SendQueryAsync(new GetSupermarkten.Query(skip, take)); } }