creating endpoints from PurchaseOrder

This commit is contained in:
2025-10-16 23:28:27 +01:00
parent 8bd7fadabc
commit 4f12911263
6 changed files with 157 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ public class PatchPurchaseProductQuantityEndpoint(PyroFetesDbContext database) :
{
public override void Configure()
{
Patch("/api/purchaseOrders/{ProductId}/{PurchaseOrderId}/Quantity", x => new { x.ProductId, x.PurchaseOrderId });
Patch("/api/purchaseProducts/{ProductId}/{PurchaseOrderId}/Quantity", x => new { x.ProductId, x.PurchaseOrderId });
AllowAnonymous();
}