1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/packages/unleash-frontend/public/js/routes.jsx
2020-02-20 08:30:26 +01:00

22 lines
969 B
JavaScript

'use strict';
const React = require('react');
const Router = require('react-router');
const UnleashApp = require('./UnleashApp');
const LogEntriesComponent = require('./components/log/LogEntriesComponent');
const FeatureTogglesComponent = require('./components/feature/FeatureTogglesComponent');
const StrategiesComponent = require('./components/strategy/StrategiesComponent');
const ArchiveFeatureComponent = require('./components/feature/ArchiveFeatureComponent');
const DefaultRoute = Router.DefaultRoute;
const Route = Router.Route;
const routes = (
<Route name="app" path="/" handler={UnleashApp}>
<Route name="strategies" handler={StrategiesComponent}/>
<Route name="log" handler={LogEntriesComponent}/>
<Route name="archive" handler={ArchiveFeatureComponent}/>
<DefaultRoute name="features" handler={FeatureTogglesComponent}/>
</Route>
);
module.exports = routes;