git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: d7bb4a1cb809f7db3135cc7d21052d9c2636bd45

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