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