Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/apps/legacy/routes/asyncRoutes/public.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncRoute } from '../../../../components/router/AsyncRoute';
import { AsyncRoute } from 'components/router/AsyncRoute';

export const ASYNC_PUBLIC_ROUTES: AsyncRoute[] = [
{ path: 'forgotpassword', page: 'session/forgotPassword' }
Expand Down
1 change: 1 addition & 0 deletions src/apps/modern/routes/asyncRoutes/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './public';
export * from './user';
5 changes: 5 additions & 0 deletions src/apps/modern/routes/asyncRoutes/public.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { AsyncRoute } from 'components/router/AsyncRoute';

export const ASYNC_PUBLIC_ROUTES: AsyncRoute[] = [
{ path: 'forgotpassword', page: 'session/forgotPassword' }
];
7 changes: 0 additions & 7 deletions src/apps/modern/routes/legacyRoutes/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ export const LEGACY_PUBLIC_ROUTES: LegacyRoute[] = [
view: 'session/login/index.html'
}
},
{
path: 'forgotpassword',
pageProps: {
controller: 'session/forgotPassword/index',
view: 'session/forgotPassword/index.html'
}
},
{
path: 'forgotpasswordpin',
pageProps: {
Expand Down
3 changes: 2 additions & 1 deletion src/apps/modern/routes/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { toViewManagerPageRoute } from 'components/router/LegacyRoute';
import ErrorBoundary from 'components/router/ErrorBoundary';
import FallbackRoute from 'components/router/FallbackRoute';

import { ASYNC_USER_ROUTES } from './asyncRoutes';
import { ASYNC_PUBLIC_ROUTES, ASYNC_USER_ROUTES } from './asyncRoutes';
import { LEGACY_PUBLIC_ROUTES, LEGACY_USER_ROUTES } from './legacyRoutes';
import VideoPage from './video';

Expand Down Expand Up @@ -38,6 +38,7 @@ export const APP_ROUTES: RouteObject[] = [
/* Public routes */
element: <ConnectionRequired level='public' />,
children: [
...ASYNC_PUBLIC_ROUTES.map(toAsyncPageRoute),
...LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute),

/* Fallback route for invalid paths */
Expand Down
Loading