48d8077ff0
* Merge conflicts automatically. Closes #208 * removed unpublished entry route All entries (either under editorial workflow or not) go through the same edit route.
36 lines
922 B
JavaScript
36 lines
922 B
JavaScript
import React from 'react';
|
|
import { Route, IndexRoute } from 'react-router';
|
|
import App from '../containers/App';
|
|
import DashboardPage from '../containers/DashboardPage';
|
|
import CollectionPage from '../containers/CollectionPage';
|
|
import EntryPage from '../containers/EntryPage';
|
|
import SearchPage from '../containers/SearchPage';
|
|
import NotFoundPage from '../containers/NotFoundPage';
|
|
|
|
export default (
|
|
<Route path="/" component={App}>
|
|
<IndexRoute component={DashboardPage} />
|
|
<Route
|
|
path="/collections/:name"
|
|
component={CollectionPage}
|
|
/>
|
|
<Route
|
|
path="/collections/:name/entries/new"
|
|
component={EntryPage}
|
|
newRecord
|
|
/>
|
|
<Route
|
|
path="/collections/:name/entries/:slug"
|
|
component={EntryPage}
|
|
/>
|
|
<Route
|
|
path="/search/:searchTerm"
|
|
component={SearchPage}
|
|
/>
|
|
<Route
|
|
path="*"
|
|
component={NotFoundPage}
|
|
/>
|
|
</Route>
|
|
);
|