adding rate limit to the API
All checks were successful
API and ETL Build / build_etl (push) Successful in 14s
API and ETL Build / build_api (push) Successful in 13s

This commit is contained in:
2025-06-03 17:29:02 -03:00
parent a7732dfccf
commit b9908b36b7
6 changed files with 110 additions and 10 deletions

View File

@@ -1,9 +1,12 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.RateLimiting;
using OpenCand.API.Config;
using OpenCand.API.Services;
using OpenCand.Core.Models;
namespace OpenCand.API.Controllers
{
[EnableRateLimiting(RateLimitingConfig.DefaultPolicy)]
public class StatsController : BaseController
{
private readonly OpenCandService openCandService;