This commit is contained in:
16
BimAI.API/Controllers/SyncController.cs
Normal file
16
BimAI.API/Controllers/SyncController.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using BimAI.Infrastructure.Sync;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace BimAI.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class SyncController(ProductSyncService productSyncService) : ControllerBase
|
||||
{
|
||||
[HttpPost("run-product-sync")]
|
||||
public async Task<IActionResult> RunProductSync()
|
||||
{
|
||||
await productSyncService.RunAsync();
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user