diff --git a/src/connection/index.js b/src/connection/index.js index a4dafc6..48d9a67 100644 --- a/src/connection/index.js +++ b/src/connection/index.js @@ -7,7 +7,7 @@ export default class Connection { this.headers = headers } - getApiUrls(endpoints) { + getApiUrls(endpoint) { return this.path + { 'blocks': 'blocks', 'blocksDetail': 'blocks/%(blockId)s', @@ -17,7 +17,7 @@ export default class Connection { 'transactionsDetail': 'transactions/%(transactionId)s', 'assets': 'assets', 'votes': 'votes' - }[endpoints] + }[endpoint] } _req(path, options = {}) {