|
@@ -4,11 +4,13 @@ import { Router, Route, hashHistory } from 'react-router'
|
|
import App from './modules/App'
|
|
import App from './modules/App'
|
|
import About from './modules/About'
|
|
import About from './modules/About'
|
|
import Repos from './modules/Repos'
|
|
import Repos from './modules/Repos'
|
|
|
|
+import Repo from './modules/Repo'
|
|
|
|
|
|
render((
|
|
render((
|
|
<Router history={hashHistory}>
|
|
<Router history={hashHistory}>
|
|
<Route path="/" component={App}>
|
|
<Route path="/" component={App}>
|
|
<Route path="/repos" component={Repos}/>
|
|
<Route path="/repos" component={Repos}/>
|
|
|
|
+ <Route path="/repos/:userName/:repoName" component={Repo}/>
|
|
<Route path="/about" component={About}/>
|
|
<Route path="/about" component={About}/>
|
|
</Route>
|
|
</Route>
|
|
</Router>
|
|
</Router>
|