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