create invoice component

This commit is contained in:
zzdrojewskipaw
2025-11-27 23:52:32 +01:00
parent 2b7ed3e451
commit 437d6d8f42
14 changed files with 624 additions and 1 deletions

View File

@@ -5,7 +5,9 @@ namespace BimAI.API.Controllers;
[ApiController]
[Route("api/[controller]")]
public class SyncController(ProductSyncService productSyncService) : ControllerBase
public class SyncController(
ProductSyncService productSyncService,
InvoiceSyncService invoiceSyncService) : ControllerBase
{
[HttpPost("run-product-sync")]
public async Task<IActionResult> RunProductSync()
@@ -13,4 +15,11 @@ public class SyncController(ProductSyncService productSyncService) : ControllerB
await productSyncService.RunAsync();
return Ok();
}
[HttpPost("run-invoice-sync")]
public async Task<IActionResult> RunInvoiceSync()
{
await invoiceSyncService.RunAsync();
return Ok();
}
}