See #192: use nodeinfo/2.0 namespace to be future proof

This commit is contained in:
Eliot Berriot 2018-05-07 22:28:21 +02:00
commit 6ff8c2c8da
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 4 additions and 4 deletions

View file

@ -77,7 +77,7 @@ export default {
var self = this
this.isLoading = true
logger.default.debug('Fetching instance stats...')
axios.get('instance/nodeinfo/').then((response) => {
axios.get('instance/nodeinfo/2.0/').then((response) => {
let d = response.data
self.stats = {}
self.stats.users = _.get(d, 'usage.users.total')