Ajout de stats pour avoir le nb de sauts par type et par année

This commit is contained in:
2026-01-08 11:49:45 +01:00
parent e53e169d45
commit 9ad39da4c7
4 changed files with 42 additions and 0 deletions

View File

@@ -95,6 +95,15 @@ namespace skydiveLogs_api.Controllers
return result;
}
[HttpGet("ByYearByJumpType")]
[EnableCors]
public IEnumerable<StatisticForChartResp> ByYearByJumpType()
{
var result = _statsService.GetStatsByYearByJumpType();
return _mapper.Map<IEnumerable<StatisticForChartResp>>(result);
}
[HttpGet("Reset")]
[EnableCors]
public void Reset()