2019-01-23 11:15:27 +01:00
|
|
|
import React from 'react'
|
2019-02-08 13:29:29 +01:00
|
|
|
import { Route, Switch } from 'react-router-dom'
|
2019-01-23 14:43:41 +01:00
|
|
|
|
2019-02-08 14:22:40 +01:00
|
|
|
import About from './routes/About'
|
|
|
|
import Home from './routes/Home'
|
|
|
|
import NotFound from './routes/NotFound'
|
2019-02-12 14:07:22 +01:00
|
|
|
import Publish from './routes/Publish/'
|
2019-02-08 14:22:40 +01:00
|
|
|
import Search from './routes/Search'
|
2019-02-28 17:12:48 +01:00
|
|
|
import Faucet from './routes/Faucet'
|
2019-03-25 16:42:37 +01:00
|
|
|
import History from './routes/History'
|
2019-05-23 14:43:40 +02:00
|
|
|
import Channels from './routes/Channels'
|
2019-02-08 14:22:40 +01:00
|
|
|
import Styleguide from './routes/Styleguide'
|
2019-01-18 17:34:40 +01:00
|
|
|
|
2019-05-23 18:18:51 +02:00
|
|
|
import Asset from './components/templates/Asset'
|
2019-05-23 14:43:40 +02:00
|
|
|
import Channel from './components/templates/Channel'
|
|
|
|
|
2019-01-18 17:34:40 +01:00
|
|
|
const Routes = () => (
|
2019-02-08 13:29:29 +01:00
|
|
|
<Switch>
|
2019-07-11 23:01:58 +02:00
|
|
|
<Route component={Home} exact path="/" />
|
|
|
|
<Route component={Styleguide} path="/styleguide" />
|
|
|
|
<Route component={About} path="/about" />
|
|
|
|
<Route component={Publish} path="/publish" />
|
|
|
|
<Route component={Search} path="/search" />
|
|
|
|
<Route component={Asset} path="/asset/:did" />
|
|
|
|
<Route component={Faucet} path="/faucet" />
|
|
|
|
<Route component={History} path="/history" />
|
|
|
|
<Route component={Channels} exact path="/channels" />
|
|
|
|
<Route component={Channel} path="/channels/:channel" />
|
|
|
|
<Route component={NotFound} />
|
2019-02-08 13:29:29 +01:00
|
|
|
</Switch>
|
2019-01-18 17:34:40 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
export default Routes
|