static-cms/src/routing/routes.js

20 lines
863 B
JavaScript
Raw Normal View History

2016-07-15 15:05:04 -03:00
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from '../containers/App';
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={CollectionPage}/>
<Route path="/collections/:name" component={CollectionPage}/>
2016-08-24 21:36:44 -03:00
<Route path="/collections/:name/entries/new" component={EntryPage} newRecord />
<Route path="/collections/:name/entries/:slug" component={EntryPage} />
<Route path="/editorialworkflow/:name/:status/:slug" component={EntryPage} unpublishedEntry />
2016-07-15 15:05:04 -03:00
<Route path="/search" component={SearchPage}/>
<Route path="*" component={NotFoundPage}/>
</Route>
);