adding more stuff
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user