mirror of
https://github.com/csehviktor/status-monitor.git
synced 2025-08-08 18:06:14 +02:00
fix retard
This commit is contained in:
@@ -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[]);
|
||||
|
||||
Reference in New Issue
Block a user