summaryrefslogtreecommitdiff
path: root/src/sagas/index.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-25 17:48:12 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:44 +0200
commitc47a27b826f7d76410308a4151611a366f9eaf46 (patch)
treec1ca374204714cedabcacb8620848b903a0bf8d6 /src/sagas/index.js
parent1ddbbd3563af77a218020021ea50a8832900b4db (diff)
Fetch and display datacenter topology
Diffstat (limited to 'src/sagas/index.js')
-rw-r--r--src/sagas/index.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sagas/index.js b/src/sagas/index.js
new file mode 100644
index 00000000..c6177cd4
--- /dev/null
+++ b/src/sagas/index.js
@@ -0,0 +1,18 @@
+import {takeEvery} from "redux-saga/effects";
+import {LOG_IN} from "../actions/auth";
+import {ADD_SIMULATION, DELETE_SIMULATION} from "../actions/simulations";
+import {FETCH_LATEST_DATACENTER} from "../actions/topology";
+import {DELETE_CURRENT_USER, FETCH_AUTHORIZATIONS_OF_CURRENT_USER} from "../actions/users";
+import {onDeleteCurrentUser} from "./profile";
+import {onSimulationAdd, onSimulationDelete} from "./simulations";
+import {onFetchLatestDatacenter} from "./topology";
+import {onFetchAuthorizationsOfCurrentUser, onFetchLoggedInUser} from "./users";
+
+export default function* rootSaga() {
+ yield takeEvery(LOG_IN, onFetchLoggedInUser);
+ yield takeEvery(FETCH_AUTHORIZATIONS_OF_CURRENT_USER, onFetchAuthorizationsOfCurrentUser);
+ yield takeEvery(ADD_SIMULATION, onSimulationAdd);
+ yield takeEvery(DELETE_SIMULATION, onSimulationDelete);
+ yield takeEvery(DELETE_CURRENT_USER, onDeleteCurrentUser);
+ yield takeEvery(FETCH_LATEST_DATACENTER, onFetchLatestDatacenter);
+}