Add function to get the tunnel flights between dates
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user