From 89bf3d31e36ad3bdfd45461ee6fb69a4c791f848 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 13 Dec 2022 21:19:57 -0600 Subject: Revert "make the key header x-key instead" This reverts commit a01dfb223c08410f4228aca7e22d0d7fa9674983. --- src/lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/api.ts') diff --git a/src/lib/api.ts b/src/lib/api.ts index a72c1e8..552607c 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -10,7 +10,7 @@ export async function fetchApi(path: string, fetch: (info: RequestInfo, init?: R init = init || {} if (!init.headers) init.headers = {} - init.headers['x-key'] = SKYBLOCK_STATS_API_KEY + init.headers['key'] = SKYBLOCK_STATS_API_KEY } const response = await fetch(API_URL + path, init) -- cgit