aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/getUsers.js
blob: bd3d17630f661c0088bf6d475c845aafe47fd627 (plain)
1
2
3
4
5
6
7
var Promise = require('bluebird')
var request = Promise.promisify(require('request'))

module.exports = function () {
  return request('http://' + window.location.host + '/getUserIndex')
    .then(function (data) { return JSON.parse(data.body) })
}