2016-07-07 23:23:18 +02:00
|
|
|
import { routerReducer as routing } from "react-router-redux";
|
|
|
|
import { combineReducers } from "redux";
|
|
|
|
|
|
|
|
import auth from "./auth";
|
|
|
|
import paginate from "./paginate";
|
|
|
|
|
|
|
|
import * as ActionTypes from "../actions";
|
|
|
|
|
|
|
|
// Updates the pagination data for different actions.
|
2016-08-05 00:00:25 +02:00
|
|
|
const api = paginate([
|
|
|
|
ActionTypes.API_REQUEST,
|
|
|
|
ActionTypes.API_SUCCESS,
|
|
|
|
ActionTypes.API_FAILURE
|
|
|
|
]);
|
2016-07-07 23:23:18 +02:00
|
|
|
|
|
|
|
const rootReducer = combineReducers({
|
|
|
|
routing,
|
|
|
|
auth,
|
2016-08-05 00:00:25 +02:00
|
|
|
api
|
2016-07-07 23:23:18 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
export default rootReducer;
|