prueba tecnica
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ProximaContracts.Application.Rates.Services;
|
||||
|
||||
namespace ProximaContracts.API.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class RatesController(IRateService service) : ControllerBase
|
||||
{
|
||||
private readonly IRateService _service = service;
|
||||
[HttpGet("GetAllRates")]
|
||||
public async Task<IActionResult> GetAllRates()
|
||||
{
|
||||
return Ok(await _service.GetRates());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user