adding more stuff
All checks were successful
API and ETL Build / build_etl (push) Successful in 2s
API and ETL Build / build_api (push) Successful in 14s

This commit is contained in:
2025-05-31 14:43:37 -03:00
parent e00cabb840
commit 146495c07b
5 changed files with 46 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.VisualBasic;
using OpenCand.API.Model;
using OpenCand.API.Services;
using OpenCand.Core.Models;
@@ -37,5 +38,14 @@ namespace OpenCand.API.Controllers
{
return await openCandService.GetCandidatoRedeSocialById(id);
}
[HttpGet("{id}/reveal-cpf")]
public async Task<CpfRevealResult> GetCandidatoCpfById([FromRoute] Guid id)
{
var rnd = new Random();
var randomWait = rnd.Next(1000, 3000);
await Task.Delay(randomWait);
return await openCandService.GetCandidatoCpfById(id);
}
}
}