Files
prueba_tecnica_proxima/backend/ProximaContracts/ProximaContracts.API/Controllers/RatesController.cs
2025-06-15 18:29:25 +02:00

18 lines
486 B
C#

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());
}
}
}