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