biz9-remote
Version:
**The BiZ9-Remote Package**
19 lines (18 loc) • 538 B
JavaScript
const { get_data_adapter,post_data_adapter,delete_data_adapter } = require('./adapter');
class Remote {
static get = async (url) => {
const [error,data] = await get_data_adapter(url);
return [error,data];
};
static post = async (url,obj) => {
const [error,data] = await post_data_adapter(url,obj);
return [error,data];
};
static delete = async (url) => {
const [error,data] = await delete_data_adapter(url);
return [error,data];
};
}
module.exports = {
Remote
}