| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 14x 14x 83x 64x 64x 14x | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const requestHandler = require("../utils/httpRequest");
class Request {
constructor(db) {
this.db = db;
}
send(api, data) {
const params = Object.assign({}, data, {
action: `database.${api}`
});
return requestHandler({
config: this.db.config.config,
params,
method: "post",
headers: {
"content-type": "application/json"
}
});
}
}
exports.Request = Request;
|