create invoice component
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user