summaryrefslogtreecommitdiff
path: root/src/api/sagas/index.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-15 23:24:28 +0300
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:42 +0200
commit91c8088e1d7def9242f60c708cd34f25dcb77d76 (patch)
treeb68065019692cea5cf6c3d14b811104aff2f0879 /src/api/sagas/index.js
parentd7512ace72448242b392299cf459c9c72c8dbee5 (diff)
Connect to backend and fetch initial project data
Diffstat (limited to 'src/api/sagas/index.js')
-rw-r--r--src/api/sagas/index.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/api/sagas/index.js b/src/api/sagas/index.js
new file mode 100644
index 00000000..ea92533a
--- /dev/null
+++ b/src/api/sagas/index.js
@@ -0,0 +1,9 @@
+import {takeEvery} from "redux-saga/effects";
+import {LOG_IN} from "../../actions/auth";
+import {FETCH_AUTHORIZATIONS_OF_CURRENT_USER} from "../../actions/users";
+import {fetchAuthorizationsOfCurrentUser, fetchLoggedInUser} from "./users";
+
+export default function* rootSaga() {
+ yield takeEvery(LOG_IN, fetchLoggedInUser);
+ yield takeEvery(FETCH_AUTHORIZATIONS_OF_CURRENT_USER, fetchAuthorizationsOfCurrentUser);
+}