From b883e1f6d9484734d3595d089c2ca852492e5644 Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 21 Jun 2017 11:17:59 +0200 Subject: [PATCH] endpoints => endpoint --- src/connection/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = {}) {