mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-23 02:00:20 +01:00
endpoints => endpoint
This commit is contained in:
parent
1696f7c1ac
commit
b883e1f6d9
@ -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 = {}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user