Merge branch 'v30'

This commit is contained in:
evanpelle
2026-04-01 20:03:39 -07:00
14 changed files with 58 additions and 155 deletions
+1
View File
@@ -59,6 +59,7 @@ export async function readGameRecord(
method: "GET",
headers: {
"Content-Type": "application/json",
"x-api-key": config.apiKey(),
},
});
const record = await response.json();
+3
View File
@@ -55,6 +55,9 @@ export function registerGamePreviewRoute(opts: {
const apiDomain = config.jwtIssuer();
const encodedID = encodeURIComponent(gameID);
const response = await fetch(`${apiDomain}/game/${encodedID}`, {
headers: {
"x-api-key": config.apiKey(),
},
signal: controller.signal,
});
if (!response.ok) return null;
+1
View File
@@ -74,6 +74,7 @@ export async function getUserMe(
const response = await fetch(config.jwtIssuer() + "/users/@me", {
headers: {
authorization: `Bearer ${token}`,
"x-api-key": config.apiKey(),
},
});
if (response.status !== 200) {