Files
Claude 3adebb731f Rename FunPack to FunUI (5.0.3 Classy Chopper): /fun endpoint, wink logo, load-time migration of old names
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
2026-10-25 13:11:03 +00:00

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();
}