client/routes.jsx
import React from 'react';
import { Router, Route, IndexRedirect } from 'react-router';
import * as containers from './containers';
export default (history) =>
<Router history={history}>
<Route path="/" component={containers.RequireAuthentication(containers.App)}>
<IndexRedirect to="/applications" />
<Route path="applications" component={containers.UserApplications} />
<Route path="applications/settings" component={containers.Applications} />
<Route path="applications/:id" component={containers.Application} />
<Route path="authorization" component={containers.Authorization} />
</Route>
<Route path="/login" component={containers.Login} />
</Router>;