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[]> {
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[]);