Add low stock endpoint

This commit is contained in:
2026-09-29 11:48:37 +05:30
parent 3dbfe6db23
commit 7dac429a1a
5 changed files with 36 additions and 0 deletions
@@ -22,6 +22,13 @@ public class StockController(StockService service, ICurrentUserService currentUs
return Ok(result);
}
[HttpGet("low-stock")]
public async Task<IActionResult> GetLowStock([FromQuery] Guid? locationId)
{
var result = await service.GetLowStockAsync(locationId);
return Ok(result);
}
[HttpGet("balances/{itemId}/total")]
public async Task<IActionResult> GetItemTotal(Guid itemId)
{