auth0-extensions/auth0-sso-dashboard-extension

View on GitHub
client/routes.jsx

Summary

Maintainability
A
0 mins
Test Coverage
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>;