init
This commit is contained in:
22
OpenCand.API/Controllers/StatsController.cs
Normal file
22
OpenCand.API/Controllers/StatsController.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user