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