1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 17:50:09 +01:00

endpoints => endpoint

This commit is contained in:
tim 2017-06-21 11:17:59 +02:00
parent 1696f7c1ac
commit b883e1f6d9

View File

@ -7,7 +7,7 @@ export default class Connection {
this.headers = headers this.headers = headers
} }
getApiUrls(endpoints) { getApiUrls(endpoint) {
return this.path + { return this.path + {
'blocks': 'blocks', 'blocks': 'blocks',
'blocksDetail': 'blocks/%(blockId)s', 'blocksDetail': 'blocks/%(blockId)s',
@ -17,7 +17,7 @@ export default class Connection {
'transactionsDetail': 'transactions/%(transactionId)s', 'transactionsDetail': 'transactions/%(transactionId)s',
'assets': 'assets', 'assets': 'assets',
'votes': 'votes' 'votes': 'votes'
}[endpoints] }[endpoint]
} }
_req(path, options = {}) { _req(path, options = {}) {