Files: 99bc16e5212f7086422943407911f7c31443ab4c / app / routes.js
580 bytesRaw
1 | const bulk = require('bulk-require') |
2 | import React from 'react' |
3 | import { Route, IndexRoute } from 'react-router' |
4 | import { mapObjIndexed, values } from 'ramda' |
5 | |
6 | import LayoutContainer from 'app/layout/container' |
7 | import FourOhFourRoutes from 'app/four-oh-four/routes' |
8 | |
9 | export default ( |
10 | <Route path='/' component={LayoutContainer}> |
11 | { |
12 | values(mapObjIndexed( |
13 | (module, moduleName) => ({ |
14 | ...module.routes.default, |
15 | key: moduleName |
16 | }), |
17 | bulk(__dirname, '!(four-oh-four)/routes.js') |
18 | )) |
19 | } |
20 | { FourOhFourRoutes } |
21 | </Route> |
22 | ) |
23 |
Built with git-ssb-web