merchant onboarding process completed

This commit is contained in:
2025-08-06 16:11:02 +05:30
parent f90d1f0c57
commit 1a27e282e3
22 changed files with 768 additions and 19 deletions

View File

@ -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);
}
}
}