mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Cleanup and reorder routes
This commit is contained in:
parent
d5ea4e515d
commit
df5295dffd
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
require("babel/polyfill");
|
||||
require('babel/polyfill');
|
||||
|
||||
import React from 'react';
|
||||
import Router from 'react-router';
|
||||
|
@ -6,7 +6,7 @@ import Header from '../components/header';
|
||||
import Footer from '../components/footer';
|
||||
import GlobalNotification from './global_notification';
|
||||
|
||||
let Link = Router.Link;
|
||||
// let Link = Router.Link;
|
||||
let RouteHandler = Router.RouteHandler;
|
||||
|
||||
|
||||
|
@ -14,9 +14,9 @@ let baseUrl = AppConstants.baseUrl;
|
||||
function getRoutes(commonRoutes) {
|
||||
return (
|
||||
<Route name="app" path={baseUrl} handler={App}>
|
||||
{commonRoutes}
|
||||
<Redirect from={baseUrl} to="login" />
|
||||
<Redirect from={baseUrl + '/'} to="login" />
|
||||
{commonRoutes}
|
||||
</Route>
|
||||
);
|
||||
}
|
||||
|
@ -9,7 +9,6 @@ import App from './app';
|
||||
import AppConstants from '../../../constants/application_constants';
|
||||
|
||||
let Route = Router.Route;
|
||||
// let Redirect = Router.Redirect;
|
||||
let baseUrl = AppConstants.baseUrl;
|
||||
|
||||
|
||||
|
@ -3,8 +3,6 @@
|
||||
import React from 'react';
|
||||
import Router from 'react-router';
|
||||
|
||||
import AscribeApp from './components/ascribe_app';
|
||||
|
||||
import getPrizeRoutes from './components/whitelabel/prize/routes';
|
||||
import getDefaultRoutes from './components/routes';
|
||||
|
||||
@ -19,12 +17,9 @@ import PasswordResetContainer from './components/password_reset_container';
|
||||
import SettingsContainer from './components/settings_container';
|
||||
import CoaVerifyContainer from './components/coa_verify_container';
|
||||
|
||||
import AppConstants from './constants/application_constants';
|
||||
import RegisterPiece from './components/register_piece';
|
||||
|
||||
let Route = Router.Route;
|
||||
let Redirect = Router.Redirect;
|
||||
let baseUrl = AppConstants.baseUrl;
|
||||
|
||||
|
||||
const COMMON_ROUTES = (
|
||||
|
Loading…
Reference in New Issue
Block a user