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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user