Files: 8ff89763aa5a55ca923acb5f2228036e30440737 / app / routes.js
691 bytesRaw
1 | const bulk = require('bulk-require') |
2 | import React from 'react' |
3 | import { Route, IndexRoute } from 'react-router' |
4 | import { map, assign } from 'lodash' |
5 | |
6 | import LayoutContainer from 'app/layout/container' |
7 | import FourOhFourRoutes from 'app/four-oh-four/routes' |
8 | import TodosRoutes from 'app/todos/routes' |
9 | import LandingRoutes from 'app/landing/routes' |
10 | |
11 | export default function appRoutes (store) { |
12 | return <Route path='/' component={LayoutContainer}> |
13 | { |
14 | map( |
15 | bulk(__dirname, '!(four-oh-four)/routes.js'), |
16 | (module, moduleName) => ({ |
17 | ...module.routes.default(store), |
18 | key: moduleName |
19 | }) |
20 | ) |
21 | } |
22 | { FourOhFourRoutes(store) } |
23 | </Route> |
24 | } |
25 |
Built with git-ssb-web