Files
schedtxt_api/Controllers/ContactQueueCreationController.cs
T
kdeng00 44958b5c18 Added new class
Added template endpoint to upload contact files. These are just plain text files of phone numbers separated by a new line
2023-09-18 20:47:39 -04:00

30 lines
730 B
C#

using Microsoft.AspNetCore.Mvc;
namespace TextSender_API.Controllers;
[ApiController]
[Route("api/v1/contact/queue")]
public class ContactQueueCreationController : ControllerBase
{
#region Fields
private readonly ILogger<ContactQueueCreationController> _logger;
#endregion
#region Constructors
public ContactQueueCreationController(ILogger<ContactQueueCreationController> logger)
{
this._logger = logger;
}
#endregion
#region Methods
[HttpPost("upload"), DisableRequestSizeLimit]
public IActionResult Upload([FromForm(Name = "file")] List<IFormFile> contactFile,
[FromForm(Name = "user_id")] string userID)
{
return Ok();
}
#endregion
}