Skip to content

Commit

Permalink
endpoints => endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
tim committed Jun 21, 2017
1 parent 9191745 commit e1d0f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class Connection {
this.headers = headers
}

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

_req(path, options = {}) {
Expand Down

0 comments on commit e1d0f21

Please sign in to comment.