ampache_react/app/reducers/index.js

23 lines
482 B
JavaScript
Raw Normal View History

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.
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,
api
2016-07-07 23:23:18 +02:00
});
export default rootReducer;