revolut-sdk
Version:
SDK for Revolut API
12 lines (11 loc) • 344 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const api_1 = require("./api");
class Accounts extends api_1.default {
constructor() {
super(...arguments);
this.get = (id) => this.fetch(`/accounts/${id}`);
this.getAll = () => this.fetch('/accounts');
}
}
exports.default = Accounts;