From 91c8088e1d7def9242f60c708cd34f25dcb77d76 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 15 Aug 2017 23:24:28 +0300 Subject: Connect to backend and fetch initial project data --- src/api/sagas/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/api/sagas/index.js (limited to 'src/api/sagas/index.js') 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); +} -- cgit v1.2.3