git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 99bc16e5212f7086422943407911f7c31443ab4c

Files: 99bc16e5212f7086422943407911f7c31443ab4c / app / routes.js

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