merchant onboarding process completed
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Singer_Hexdive.Models.IOs;
|
||||
using Singer_Hexdive.Services.FunctionHandlers;
|
||||
|
||||
namespace Singer_Hexdive.Controllers
|
||||
{
|
||||
@ -7,5 +9,18 @@ namespace Singer_Hexdive.Controllers
|
||||
[Route("api")]
|
||||
public class ApiController : ControllerBase
|
||||
{
|
||||
private readonly MerchantManager _merchantManager;
|
||||
|
||||
public ApiController(MerchantManager merchantManager)
|
||||
{
|
||||
_merchantManager = merchantManager;
|
||||
}
|
||||
|
||||
[HttpPost("merchant")]
|
||||
public async Task<IActionResult> MerchantExecute([FromBody] ApiRequest request)
|
||||
{
|
||||
var response = await _merchantManager.Execute(request);
|
||||
return StatusCode(response.StatusCode, response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user