mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
25 lines
892 B
JavaScript
25 lines
892 B
JavaScript
import React from 'react';
|
|
import { Router, Route, Redirect, IndexRoute, IndexRedirect, browserHistory } from 'react-router';
|
|
|
|
import config from 'services/config'
|
|
|
|
import ModerationQueue from 'containers/ModerationQueue'
|
|
import CommentStream from 'containers/CommentStream'
|
|
import EmbedLink from 'components/EmbedLink'
|
|
import Configure from 'containers/Configure'
|
|
import CommunityContainer from 'containers/CommunityContainer'
|
|
import LayoutContainer from 'containers/LayoutContainer'
|
|
|
|
const routes = (
|
|
<Route component={LayoutContainer}>
|
|
<Route path='admin' component={ModerationQueue} />
|
|
<Route path='admin/embed' component={CommentStream} />
|
|
<Route path='admin/embedlink' component={EmbedLink} />
|
|
<Route path='admin/configure' component={Configure} />
|
|
</Route>
|
|
);
|
|
|
|
const AppRouter = () => <Router history={browserHistory} routes={routes} />;
|
|
|
|
export default AppRouter;
|