Files: d7bb4a1cb809f7db3135cc7d21052d9c2636bd45 / 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