Added new class

Added template endpoint to upload contact files. These are just plain text files of phone numbers separated by a new line
This commit is contained in:
kdeng00
2023-09-18 20:47:39 -04:00
parent 00c20c806a
commit 44958b5c18
@@ -0,0 +1,30 @@
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
}