import{r as e}from"./p-23450e8b.js";const r=class{constructor(r){e(this,r)}async create(e,r){let t={};t["Content-Type"]="application/json";if(r.token!=undefined)t["Authorization"]="Bearer "+r.token;return await fetch(r.url,{body:r.method==="GET"?undefined:JSON.stringify(e),headers:t,method:r.method||"POST",mode:r.mode||"cors"})}};export{r as gl_rest_controller};
//# sourceMappingURL=p-9e1be6a1.entry.js.map