using EnvelopeGenerator.Application.Contracts; using Microsoft.AspNetCore.Mvc; namespace EnvelopeGenerator.Web.Controllers.Test { [Route("api/[controller]")] [ApiController] public class TestMessagingController : ControllerBase { private readonly IMessagingService _service; public TestMessagingController(IMessagingService service) { _service = service; } [HttpPost] public async Task SendAsync(string recipient, string message) { await _service.SendSmsAsync(recipient: recipient, message: message); return Ok(); } } }