old_contents: import axios from 'axios';
  import ActionTypes from './types';
  
  const ROOT_URL = 'http://localhost:3142';
  
  export function testFunc() {
  	return (dispatch) => {
  		axios.get(`${ROOT_URL}/`)
  			.then((res) => {
  				dispatch({
  					type: ActionTypes.TEST_FUNCTION,
  					payload: res.data.hi
  				});
  			})
  			.catch((error) => {
  				dispatch(authError('Redux: Ok,  AJAX: Error'));
  			});
  	};
  }
  
  const authError = error => (
  	{
  		type: ActionTypes.AUTH_ERROR,
  		payload: error
  	}
  );
  
new_contents: import axios from 'axios';
  import ActionTypes from './types';
  
  const ROOT_URL = 'https://localhost:3142';
  
  export function testFunc() {
  	return (dispatch) => {
  		axios.get(`${ROOT_URL}/`)
  			.then((res) => {
  				dispatch({
  					type: ActionTypes.TEST_FUNCTION,
  					payload: res.data.hi
  				});
  			})
  			.catch((error) => {
  				dispatch(authError('Redux: Ok,  AJAX: Error'));
  			});
  	};
  }
  
  const authError = error => (
  	{
  		type: ActionTypes.AUTH_ERROR,
  		payload: error
  	}
  );
  
subject: change back-end address to https