From 779c6749ff8acf51288adea1292a76dfbc40f390 Mon Sep 17 00:00:00 2001 From: Andrew Pennington Date: Thu, 15 Aug 2024 23:50:45 +0100 Subject: [PATCH] Update the route in the lib --- ui/lib/serverEnvironment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/lib/serverEnvironment.ts b/ui/lib/serverEnvironment.ts index d8ce30c..3e9c648 100644 --- a/ui/lib/serverEnvironment.ts +++ b/ui/lib/serverEnvironment.ts @@ -9,7 +9,7 @@ const CACHE_DURATION_MS = 5 * 60 * 1000; // Cache duration: 5 minutes async function fetchConfig() { try { - const response = await fetch('/api/config'); + const response = await fetch('/api/env'); if (response.ok) { const data = await response.json(); cachedConfig = data;