git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: e1b55c0cca1102ca828c984773c303b09b965ff0

Files: e1b55c0cca1102ca828c984773c303b09b965ff0 / app / routes.js

691 bytesRaw
1const bulk = require('bulk-require')
2import React from 'react'
3import { Route, IndexRoute } from 'react-router'
4import { map, assign } from 'lodash'
5
6import LayoutContainer from 'app/layout/container'
7import FourOhFourRoutes from 'app/four-oh-four/routes'
8import TodosRoutes from 'app/todos/routes'
9import LandingRoutes from 'app/landing/routes'
10
11export default function appRoutes (store) {
12 return <Route path='/' component={LayoutContainer}>
13 {
14 map(
15 bulk(__dirname, '!(four-oh-four)/routes.js'),
16 (module, moduleName) => ({
17 ...module.routes.default(store),
18 key: moduleName
19 })
20 )
21 }
22 { FourOhFourRoutes(store) }
23 </Route>
24}
25

Built with git-ssb-web