This commit is contained in:
2026-04-22 21:26:23 +04:30
parent 64ee78e320
commit 15d11122b8
9 changed files with 149 additions and 229 deletions
@@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Mvc;
using Vizhvizh.BuildingBlocks.Infrastructure;
using Vizhvizh.GoldGallery.ApplicationContract.Commands;
namespace Vizhvizh.GoldGallery.Api.Controllers;
[ApiController]
[Route("api/[controller]/[action]")]
public class CategoryController(IExecutor executor) : ControllerBase
{
[HttpPost]
public async Task<ActionResult> Create([FromBody] CreateCategoryCommand request, CancellationToken cancellationToken)
{
await executor.Execute(request, cancellationToken);
return Ok();
}
}