mirror of
https://github.com/csehviktor/status-monitor.git
synced 2026-04-28 16:27:34 +02:00
fix retard
This commit is contained in:
@@ -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[]);
|
||||||
|
|||||||
Reference in New Issue
Block a user