using AutobusApi.Application.RouteSearch; using Microsoft.AspNetCore.Mvc; namespace AutobusApi.Api.Controllers; [Route("search")] public class RouteSearchController : BaseController { [HttpPost] public async Task> Search([FromBody] RouteSearchQuery query, CancellationToken cancellationToken) { return await Mediator.Send(query, cancellationToken); } }