diff --git a/ui/src/services/store.ts b/ui/src/services/store.ts index 0821bc3..36026f4 100644 --- a/ui/src/services/store.ts +++ b/ui/src/services/store.ts @@ -26,8 +26,8 @@ export async function getHistoricalData( ): Promise { return await fetch( import.meta.env.DEV - ? `http://localhost:3000/agent/${agent}/${period}` - : `/agent/${agent}`, + ? `http://localhost:3000/history/${agent}/${period}` + : `/history/${agent}/${period}`, ) .then((res) => res.json()) .then((data) => data as StatusMessage[]);