Update the route in the lib

This commit is contained in:
Andrew Pennington 2024-08-15 23:50:45 +01:00
parent 049afb6eba
commit 779c6749ff
No known key found for this signature in database
GPG key ID: E9DA097213FD17EA

View file

@ -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;