From eb0e7b8f974e8b56d6fe367908bd1d0dc25a26fa Mon Sep 17 00:00:00 2001 From: Perplexity Bot Date: Tue, 4 Aug 2026 19:51:35 +0000 Subject: [PATCH] Fix inventory UI API paths for current backend routing --- frontend/src/lib/inventoryApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/inventoryApi.ts b/frontend/src/lib/inventoryApi.ts index 52d3e8b..b123ccb 100644 --- a/frontend/src/lib/inventoryApi.ts +++ b/frontend/src/lib/inventoryApi.ts @@ -8,13 +8,13 @@ async function handleResponse(response: Response): Promise { } export async function fetchInventoryTree(): Promise { - const response = await fetch('/api/inventory/tree'); + const response = await fetch('/inventory/tree'); const data = await handleResponse>(response); return data.items; } export async function fetchNodeContext(id: string): Promise { - const response = await fetch(`/api/inventory/nodes/${id}/context`); + const response = await fetch(`/inventory/nodes/${id}/context`); const data = await handleResponse>(response); return data.item; }