{"size": 486, "ext": "js", "max_stars_repo_path": "src/reduxes/store/configureStore.prod.js", "max_stars_repo_name": "fatalxiao/dpe-frontend", "max_stars_repo_stars_event_min_datetime": "2018-01-11T14:15:38.000Z", "max_stars_repo_stars_event_max_datetime": "2018-01-11T14:15:38.000Z", "max_issues_repo_path": "src/reduxes/store/configureStore.prod.js", "max_issues_repo_name": "fatalxiao/dpe-frontend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/reduxes/store/configureStore.prod.js", "max_forks_repo_name": "fatalxiao/dpe-frontend", "max_forks_repo_forks_event_min_datetime": "2018-04-14T08:49:38.000Z", "max_forks_repo_forks_event_max_datetime": "2018-04-14T08:49:38.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 27.0, "max_line_length": 62, "alphanum_fraction": 0.695473251}
import {createStore, applyMiddleware} from 'redux';
import thunk from 'redux-thunk';
import {routerMiddleware} from 'react-router-redux';
import rootReducer from 'reduxes/reducers';
import ApiMiddleware from 'reduxes/middlewares/ApiMiddleware';

function configureStore(history) {
    return createStore(
        rootReducer,
        applyMiddleware(
            thunk,
            ApiMiddleware,
            routerMiddleware(history)
        )
    );
};

export default configureStore;