Fix inventory UI API paths for current backend routing
CI / basic-check (push) Has been cancelled

This commit is contained in:
Perplexity Bot
2026-08-04 19:51:35 +00:00
parent d29a05fff6
commit eb0e7b8f97
+2 -2
View File
@@ -8,13 +8,13 @@ async function handleResponse<T>(response: Response): Promise<T> {
}
export async function fetchInventoryTree(): Promise<InventoryTreeNode[]> {
const response = await fetch('/api/inventory/tree');
const response = await fetch('/inventory/tree');
const data = await handleResponse<ListResponse<InventoryTreeNode>>(response);
return data.items;
}
export async function fetchNodeContext(id: string): Promise<NodeContext> {
const response = await fetch(`/api/inventory/nodes/${id}/context`);
const response = await fetch(`/inventory/nodes/${id}/context`);
const data = await handleResponse<EntityResponse<NodeContext>>(response);
return data.item;
}