2019-01-23 11:15:27 +01:00
|
|
|
import React from 'react'
|
|
|
|
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'
|
|
|
|
import Home from './pages/Home'
|
2019-01-23 12:19:28 +01:00
|
|
|
import About from './pages/About'
|
|
|
|
import Publish from './pages/Publish'
|
|
|
|
import Details from './pages/Details'
|
|
|
|
import List from './pages/List'
|
2019-01-23 11:15:27 +01:00
|
|
|
import NotFound from './pages/NotFound'
|
2019-01-18 17:34:40 +01:00
|
|
|
|
|
|
|
const Routes = () => (
|
|
|
|
<Router>
|
|
|
|
<Switch>
|
2019-01-23 11:47:47 +01:00
|
|
|
<Route exact={true} component={Home} path="/" />
|
2019-01-23 12:19:28 +01:00
|
|
|
<Route component={About} path="/about" />
|
|
|
|
<Route component={Publish} path="/publish" />
|
|
|
|
<Route component={List} path="/list" />
|
|
|
|
<Route component={Details} path="/asset/:did" />
|
2019-01-18 17:34:40 +01:00
|
|
|
<Route component={NotFound} />
|
|
|
|
</Switch>
|
|
|
|
</Router>
|
|
|
|
)
|
|
|
|
|
|
|
|
export default Routes
|