UNPKG

decocms

Version:

Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools

2 lines (1 loc) • 234 B
async function n(e,s){const t=await fetch(e,{credentials:"include",...s});if(!t.ok){const a=await t.json().catch(()=>({}));throw new Error(a.message||a.error||`Request failed (HTTP ${t.status})`)}return await t.json()}export{n as a};