This commit is contained in:
2025-05-31 10:58:30 -03:00
commit 1cb7645910
48 changed files with 2235 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using Microsoft.AspNetCore.Mvc;
using OpenCand.API.Services;
using OpenCand.Core.Models;
namespace OpenCand.API.Controllers
{
public class StatsController : BaseController
{
private readonly OpenCandService openCandService;
public StatsController(OpenCandService openCandService)
{
this.openCandService = openCandService;
}
[HttpGet()]
public async Task<OpenCandStats> GetStats()
{
return await openCandService.GetOpenCandStatsAsync();
}
}
}