mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
21 lines
518 B
JavaScript
21 lines
518 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
import Router from 'react-router';
|
|
|
|
import AscribeApp from './components/ascribe_app';
|
|
import PieceList from './components/piece_list';
|
|
import EditionContainer from './components/edition_container';
|
|
|
|
let Route = Router.Route;
|
|
|
|
|
|
let routes = (
|
|
<Route name="app" handler={AscribeApp}>
|
|
<Route name="pieces" path="/" handler={PieceList} />
|
|
<Route name="edition" path="/editions/:editionId" handler={EditionContainer} />
|
|
</Route>
|
|
);
|
|
|
|
export default routes;
|