import axios from 'axios';

function getUsers() {
    return axios({
        url: '/api/users',
        timeout: 20000,
        method: 'get',
        responseType: 'json'
    })
        .then(function (res) {
            return res.data;
        })
}

export default getUsers;
import axios from 'axios';

function getUsers() {
    return axios({
        url: '/api/users',
        timeout: 20000,
        method: 'get',
        responseType: 'json'
    })
        .then(function (res) {
            return res.data;
        })
}

export default getUsers;
Set up getUser axios to get all users
Set up getUser axios to get all users
