diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-14 18:43:58 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-14 18:43:58 +0200 |
commit | b6f54ed56121aa5435dd813c952b292b25b56bfb (patch) | |
tree | b4c88476393b031f00e9a1398f4f2a352f530341 /frontend/src/routes.js | |
parent | Fix typo in error subscription path (diff) | |
download | seven-wonders-b6f54ed56121aa5435dd813c952b292b25b56bfb.tar.gz seven-wonders-b6f54ed56121aa5435dd813c952b292b25b56bfb.tar.bz2 seven-wonders-b6f54ed56121aa5435dd813c952b292b25b56bfb.zip |
Add lobby saga
- Fix lobby's player list updates
- Fix lobby's player list order
- Add 'start game' button (not restricted to owner yet)
Resolves:
https://github.com/luxons/seven-wonders/issues/7
Diffstat (limited to 'frontend/src/routes.js')
-rw-r--r-- | frontend/src/routes.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/routes.js b/frontend/src/routes.js index 1ce46bb3..6fd60c04 100644 --- a/frontend/src/routes.js +++ b/frontend/src/routes.js @@ -1,6 +1,7 @@ import { fork } from 'redux-saga/effects' import homeSaga from './sagas/home' import gameBrowserSaga from './sagas/gameBrowser' +import lobbySaga from './sagas/lobby' export const makeSagaRoutes = wsConnection => ({ *'/'() { @@ -8,6 +9,9 @@ export const makeSagaRoutes = wsConnection => ({ }, *'/games'() { yield fork(gameBrowserSaga, wsConnection) + }, + *'/lobby/*'() { + yield fork(lobbySaga, wsConnection) } }) @@ -28,7 +32,7 @@ export const routes = [ component: LobbyLayout, childRoutes: [ { path: '/games', component: GameBrowser }, - { path: '/lobby', component: Lobby } + { path: '/lobby/*', component: Lobby } ] }, { |