fix retard

This commit is contained in:
csehviktor
2025-07-19 18:27:50 +02:00
parent 25c94beda9
commit c3293898e8

View File

@@ -26,8 +26,8 @@ export async function getHistoricalData(
): Promise<StatusMessage[]> { ): Promise<StatusMessage[]> {
return await fetch( return await fetch(
import.meta.env.DEV import.meta.env.DEV
? `http://localhost:3000/agent/${agent}/${period}` ? `http://localhost:3000/history/${agent}/${period}`
: `/agent/${agent}`, : `/history/${agent}/${period}`,
) )
.then((res) => res.json()) .then((res) => res.json())
.then((data) => data as StatusMessage[]); .then((data) => data as StatusMessage[]);