git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: b817a22329dc2038d6896282542635e15961b37b

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