From b6f54ed56121aa5435dd813c952b292b25b56bfb Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sun, 14 May 2017 18:43:58 +0200 Subject: 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 --- frontend/src/routes.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'frontend/src/routes.js') 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 } ] }, { -- cgit