Old project/workflow names and browser settings migrate on load; /funpack redirects to /fun. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016acRss69eH1235eRdFTZHY
11 lines
358 B
JavaScript
11 lines
358 B
JavaScript
// What the server says exists.
|
|
|
|
const ENDPOINT = "/fun/api/modules";
|
|
|
|
export async function fetchManifest(traits) {
|
|
const url = traits ? `${ENDPOINT}?traits=${encodeURIComponent(traits.join(","))}` : ENDPOINT;
|
|
const response = await fetch(url);
|
|
if (!response.ok) throw new Error(`${ENDPOINT} answered ${response.status}`);
|
|
return response.json();
|
|
}
|