Add function to get the tunnel flights between dates

This commit is contained in:
Sébastien ANDRE
2023-06-22 20:24:28 +02:00
parent ef15986db3
commit 894f283654
5 changed files with 35 additions and 0 deletions

View File

@@ -49,6 +49,15 @@ namespace skydiveLogs_api.Controllers
return _mapper.Map<TunnelFlightResp>(result);
}
// GET: api/TunnelFlight/20230101/20230701
[HttpGet("{beginDate}/{endDate}")]
[EnableCors]
public TunnelFlightResp Get(string beginDate, string endDate)
{
var result = _tunnelFlightService.GetTunnelFlightByDates(beginDate, endDate);
return _mapper.Map<TunnelFlightResp>(result);
}
// POST: api/Tunnel
[HttpPost]
[EnableCors]