2016-08-10 09:39:01 +00:00
|
|
|
import React from 'react'
|
|
|
|
import { Route, IndexRoute } from 'react-router'
|
|
|
|
import Layout from './containers/Layout'
|
2016-11-15 18:46:17 +00:00
|
|
|
import Home from './containers/Home'
|
2016-11-16 10:22:28 +00:00
|
|
|
import Rule from './components/Rule'
|
2016-12-16 15:45:13 +00:00
|
|
|
import About from './components/About'
|
2017-01-03 17:23:04 +00:00
|
|
|
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} />
|
2017-01-03 17:23:04 +00:00
|
|
|
<Route path="cdd" component={CDD} />
|
2016-12-16 15:45:13 +00:00
|
|
|
<Route path="a-propos" component={About} />
|
2016-11-15 18:46:17 +00:00
|
|
|
<IndexRoute component={Home} />
|
2016-08-10 09:39:01 +00:00
|
|
|
<Route path="*" component={() => <h2>On vous a perdu !</h2>} />
|
|
|
|
</Route>
|
|
|
|
)
|