Update API about the stats "ByGear"
This commit is contained in:
@@ -48,11 +48,11 @@ namespace skydiveLogs_api.Controllers
|
||||
return _mapper.Map<IEnumerable<StatisticResp>>(result);
|
||||
}
|
||||
|
||||
[HttpGet("ByRig")]
|
||||
[HttpGet("ByGear")]
|
||||
[EnableCors]
|
||||
public IEnumerable<StatisticResp> ByRig()
|
||||
public IEnumerable<StatisticResp> ByGear()
|
||||
{
|
||||
var result = _statsService.GetStatsByRig();
|
||||
var result = _statsService.GetStatsByGear();
|
||||
|
||||
return _mapper.Map<IEnumerable<StatisticResp>>(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user