// import config from 'config';
// import { authHeader, handleResponse } from '../_helpers';
// import { authenticationService } from '../_services';

// export const userService = {
//     getAll
// };

// function getAll() {
//     //const requestOptions = { method: 'GET', headers: authHeader() };
//     const currentUser = authenticationService.currentUserValue;
//     const requestOptions = { 
//         method: 'GET', 
//         headers: {
//             //'Accept': '*/*',
//             //'Connection': 'keep-alive',
//             //'Content-Type': 'application/json',
//             //'Access-Control-Allow-Origin': '*',
//             //'Access-Control-Allow-Methods': 'HEAD, GET, POST, PUT, PATCH, DELETE, OPTIONS',
//             //'Access-Control-Allow-Headers': 'Origin, Content-Type, X-Auth-Token',
//             'Authorization': 'Bearer '.concat(currentUser.jwtToken) 
//         },
//     };
//     console.log(requestOptions);
//     //return fetch(`${config.apiUrl}/v1/Users`, requestOptions)
//     return fetch(`http://api.practicekea.com/api-institute/v1/en/Classes`, requestOptions)
//     .then((response) => response.text())
//     .then((responseText) => {
//         console.log(JSON.parse(responseText));
//     });
// }