summaryrefslogtreecommitdiff
path: root/frontend/src/sagas.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-01-22 12:46:01 +0100
committerVictor Chabbert <chabbertvi@eisti.eu>2017-01-22 12:46:01 +0100
commit3f2c73cccc554c87bfe39ab706bf01690fb28baf (patch)
tree2e20d1de318acbda019242a6336495c526ce110f /frontend/src/sagas.js
parentAns /user/queue/lobby/joined message on game creation (diff)
downloadseven-wonders-3f2c73cccc554c87bfe39ab706bf01690fb28baf.tar.gz
seven-wonders-3f2c73cccc554c87bfe39ab706bf01690fb28baf.tar.bz2
seven-wonders-3f2c73cccc554c87bfe39ab706bf01690fb28baf.zip
Handle game browser
Diffstat (limited to 'frontend/src/sagas.js')
-rw-r--r--frontend/src/sagas.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/src/sagas.js b/frontend/src/sagas.js
index e43e91c2..7c356e1d 100644
--- a/frontend/src/sagas.js
+++ b/frontend/src/sagas.js
@@ -4,11 +4,15 @@ import { call } from 'redux-saga/effects'
import createWsConnection from './utils/createWebSocketConnection'
import usernameChoiceSaga from './sagas/usernameChoice'
+import gameBrowserSaga from './sagas/gameBrowser'
let wsConnection
const routes = {
*'/'() {
yield usernameChoiceSaga(wsConnection)
+ },
+ *'/games'() {
+ yield gameBrowserSaga(wsConnection)
}
}
bgstack15