mon-entreprise/source/routes.js

18 lines
578 B
JavaScript
Raw Normal View History

2016-08-10 09:39:01 +00:00
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Layout from './containers/Layout'
import Home from './containers/Home'
2016-11-16 10:22:28 +00:00
import Rule from './components/Rule'
import About from './components/About'
import CDD from './components/CDD'
2016-08-10 09:39:01 +00:00
export default (
<Route path="/" component={Layout}>
2016-12-07 18:08:10 +00:00
<Route path="regle/:name" component={Rule} />
<Route path="cdd" component={CDD} />
<Route path="a-propos" component={About} />
<IndexRoute component={Home} />
2016-08-10 09:39:01 +00:00
<Route path="*" component={() => <h2>On vous a perdu !</h2>} />
</Route>
)