aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cache.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cache.ts')
-rw-r--r--src/lib/cache.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/cache.ts b/src/lib/cache.ts
index 079c561b..064b4632 100644
--- a/src/lib/cache.ts
+++ b/src/lib/cache.ts
@@ -1,10 +1,9 @@
-
// src/lib/server/cache.ts
let cachedData: any = null;
async function fetchData() {
// Fetch data from your API
- const response = await fetch('https://api.example.com/data');
+ const response = await fetch("https://api.example.com/data");
cachedData = await response.json();
}