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