git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 51f5f8f504793351faa020ae6f5b8826c175aceb

Files: 51f5f8f504793351faa020ae6f5b8826c175aceb / app / routes.js

622 bytesRaw
1const React = require('react')
2const { Route, IndexRoute } = require('react-router')
3const bulk = require('bulk-require')
4const { mapObjIndexed, values } = require('ramda')
5
6const LayoutContainer = require('app/layout/container')
7const FourOhFourRoutes = require('app/four-oh-four/routes')
8
9const 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
24module.exports = routes
25

Built with git-ssb-web