accounts-frontend/src/routes.js

28 lines
985 B
JavaScript
Raw Normal View History

import React from 'react';
import { Route, IndexRoute } from 'react-router';
2016-01-04 02:48:42 +05:30
import RootPage from 'pages/root/RootPage';
import IndexPage from 'pages/index/IndexPage';
import AuthPage from 'pages/auth/AuthPage';
import Register from 'components/auth/Register';
import Login from 'components/auth/Login';
import Permissions from 'components/auth/Permissions';
import Activation from 'components/auth/Activation';
import Password from 'components/auth/Password';
export default (
2016-01-04 02:48:42 +05:30
<Route path="/" component={RootPage}>
<IndexRoute component={IndexPage} />
<Route path="auth" component={AuthPage}>
<Route path="/login" component={Login} />
<Route path="/password" component={Password} />
<Route path="/register" component={Register} />
<Route path="/activation" component={Activation} />
<Route path="/oauth/permissions" component={Permissions} />
<Route path="/oauth/:id" component={Permissions} />
</Route>
</Route>
);