{"size": 576, "ext": "js", "max_stars_repo_path": "frontend/face-off-ai/src/store.js", "max_stars_repo_name": "faceoff-team/face-off-ai", "max_stars_repo_stars_event_min_datetime": "2021-12-14T20:12:23.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-14T20:12:23.000Z", "max_issues_repo_path": "frontend/face-off-ai/src/store.js", "max_issues_repo_name": "faceoff-team/face-off-ai", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "frontend/face-off-ai/src/store.js", "max_forks_repo_name": "faceoff-team/face-off-ai", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.1818181818, "max_line_length": 73, "alphanum_fraction": 0.7482638889}
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducers';
import { composeWithDevTools } from 'redux-devtools-extension';

//Make http accessible throughout app.
export const http = require('axios');

http.defaults.headers.post['Content-Type'] = 'application/json';

http.defaults.baseURL = "https://ai.faceoff.cf";

const initialState = {};

const middleware = [thunk];

const store = createStore(rootReducer, initialState, composeWithDevTools(
    applyMiddleware(...middleware),
));

export default store;
