aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/getUsers.js
blob: 780ae498418d86e7c33fa273df898b510badb90b (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(data => JSON.parse(data.body))
}