summaryrefslogtreecommitdiff
path: root/frontend/src/routes.js
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@amadeus.com>2017-07-21 10:00:07 +0200
committerJoffrey Bion <joffrey.bion@amadeus.com>2017-07-21 16:29:16 +0200
commit859bafb1e4223216d8d818fb5566fd42aaf80705 (patch)
tree25994f3165019e5703c9647b3c435f86eb056cbb /frontend/src/routes.js
parentRename actions in games.js (GAME -> GAMES) (diff)
downloadseven-wonders-859bafb1e4223216d8d818fb5566fd42aaf80705.tar.gz
seven-wonders-859bafb1e4223216d8d818fb5566fd42aaf80705.tar.bz2
seven-wonders-859bafb1e4223216d8d818fb5566fd42aaf80705.zip
Isolate Seven Wonders API from sagas
Diffstat (limited to 'frontend/src/routes.js')
-rw-r--r--frontend/src/routes.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/frontend/src/routes.js b/frontend/src/routes.js
index 40906b93..52990728 100644
--- a/frontend/src/routes.js
+++ b/frontend/src/routes.js
@@ -9,16 +9,17 @@ import HomePage from './containers/home';
import GameBrowser from './containers/gameBrowser';
import Lobby from './containers/lobby';
import Error404 from './components/errors/Error404';
+import { SevenWondersSession } from './api/sevenWondersApi';
-export const makeSagaRoutes = wsConnection => ({
+export const makeSagaRoutes = (sevenWondersSession: SevenWondersSession) => ({
*'/'() {
- yield fork(homeSaga, wsConnection);
+ yield fork(homeSaga, sevenWondersSession);
},
*'/games'() {
- yield fork(gameBrowserSaga, wsConnection);
+ yield fork(gameBrowserSaga, sevenWondersSession);
},
*'/lobby/*'() {
- yield fork(lobbySaga, wsConnection);
+ yield fork(lobbySaga, sevenWondersSession);
},
});
bgstack15