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:
parent
1696f7c1ac
commit
b883e1f6d9
@ -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 = {}) {
|
||||
|
Loading…
Reference in New Issue
Block a user