1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/routes.js

20 lines
509 B
JavaScript
Raw Normal View History

import React from 'react';
2015-05-18 09:56:16 +02:00
import Router from 'react-router';
import AscribeApp from './components/ascribe_app';
import PieceList from './components/piece_list';
import Piece from './components/piece';
2015-05-18 09:56:16 +02:00
2015-05-19 17:16:01 +02:00
let Route = Router.Route;
2015-05-18 09:56:16 +02:00
2015-05-20 16:44:45 +02:00
2015-05-19 17:16:01 +02:00
let routes = (
2015-05-18 18:00:12 +02:00
<Route name="app" path="/" handler={AscribeApp}>
<Route name="pieces" path="/pieces" handler={PieceList}>
2015-05-20 09:08:26 +02:00
<Route name="piece" path="/pieces/:bitcoin_ID_noPrefix" handler={Piece} />
</Route>
2015-05-18 18:00:12 +02:00
</Route>
);
2015-05-18 18:00:12 +02:00
export default routes;