1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00
onion/js/routes.js
Tim Daubenschütz 54866cda84 Improved naming
2015-05-26 10:52:20 +02:00

22 lines
549 B
JavaScript

import React from 'react';
import Router from 'react-router';
import AscribeApp from './components/ascribe_app';
import PieceList from './components/piece_list';
import PieceContainer from './components/piece_container';
let Route = Router.Route;
let routes = (
<Route name="app" path="/" handler={AscribeApp}>
<Route name="pieces" path="/pieces" handler={PieceList}>
</Route>
<Route name="piece" path="/pieces/:pieceId" handler={PieceContainer}>
</Route>
</Route>
);
export default routes;