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

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