2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
var s=(t,a,i)=>new Promise((u,P)=>{var y=o=>{try{p(i.next(o))}catch(E){P(E)}},O=o=>{try{p(i.throw(o))}catch(E){P(E)}},p=o=>o.done?u(o.value):Promise.resolve(o.value).then(y,O);p((i=i.apply(t,a)).next())});import{bl as e,aO as r,bm as c,a9 as n,bn as T}from"./index-414f6242.js";const l=t=>s(void 0,null,function*(){try{return yield e(r.GET)(`${c.PROJECT}/list`,t)}catch(a){n()}}),d=t=>s(void 0,null,function*(){try{return yield e(r.POST)(`${c.PROJECT}/create`,t)}catch(a){n()}}),C=t=>s(void 0,null,function*(){try{return yield e(r.GET)(`${c.PROJECT}/getData`,t)}catch(a){n()}}),A=t=>s(void 0,null,function*(){try{return yield e(r.POST)(`${c.PROJECT}/save/data`,t,T.FORM_URLENCODED)}catch(a){n()}}),w=t=>s(void 0,null,function*(){try{return yield e(r.POST)(`${c.PROJECT}/edit`,t)}catch(a){n()}}),J=t=>s(void 0,null,function*(){try{return yield e(r.DELETE)(`${c.PROJECT}/delete`,t)}catch(a){n()}}),$=t=>s(void 0,null,function*(){try{return yield e(r.PUT)(`${c.PROJECT}/publish`,t)}catch(a){n()}}),j=t=>s(void 0,null,function*(){try{return yield e(r.POST)(`${c.PROJECT}/upload`,t,T.FORM_DATA)}catch(a){n()}});export{$ as a,j as b,d as c,J as d,C as f,l as p,A as s,w as u};
|