diff options
Diffstat (limited to 'frontend/src/routes.js')
-rw-r--r-- | frontend/src/routes.js | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/frontend/src/routes.js b/frontend/src/routes.js index 61c6aacd..b87977ef 100644 --- a/frontend/src/routes.js +++ b/frontend/src/routes.js @@ -1,26 +1,9 @@ // @flow -import { fork } from 'redux-saga/effects'; -import { SevenWondersSession } from './api/sevenWondersApi'; -import Error404 from './components/errors/Error404'; +import { HomeLayout, LobbyLayout } from './layouts'; import GameBrowser from './containers/gameBrowser'; import HomePage from './containers/home'; import Lobby from './containers/lobby'; -import { HomeLayout, LobbyLayout } from './layouts'; -import gameBrowserSaga from './sagas/gameBrowser'; -import homeSaga from './sagas/home'; -import lobbySaga from './sagas/lobby'; - -export const makeSagaRoutes = (sevenWondersSession: SevenWondersSession) => ({ - *'/'() { - yield fork(homeSaga, sevenWondersSession); - }, - *'/games'() { - yield fork(gameBrowserSaga, sevenWondersSession); - }, - *'/lobby/*'() { - yield fork(lobbySaga, sevenWondersSession); - }, -}); +import Error404 from './components/errors/Error404'; export const routes = [ { |