blob: 714457b9c9e2c8a53c9ca4982c7f3a4f12a521f9 [file]
/*********************************************************************
* Copyright (c) 2021 Boeing
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Boeing - initial API and implementation
**********************************************************************/
import { Routes } from '@angular/router';
export const routes: Routes = [
{
path: '', //todo remove when main app page is made
redirectTo: 'ple',
pathMatch: 'prefix',
},
{
path: 'diff-report',
loadChildren: () => import('./diff-report/diff-report.routes'),
},
{
path: 'ple',
loadChildren: () => import('./ple/ple.routes'),
},
{
path: 'training',
loadChildren: () => import('./training/training.routes'),
},
{
path: '404',
loadChildren: () => import('@osee/page-not-found'),
},
{
path: 'about',
loadChildren: () => import('@osee/about'),
},
{
path: 'gc',
loadChildren: () => import('./grid-commander/grid-commander.routes'),
},
// {
// path: '',
// loadChildren: () => import('@osee/toolbar'),
// outlet: 'toolbar',
// pathMatch: 'full', //not working in angular 16
// },
{
path: '',
loadChildren: () => import('@osee/layout'),
outlet: 'TopLevelNav',
},
{
path: '**',
loadChildren: () => import('@osee/toolbar'),
outlet: 'toolbar',
},
{
path: '**',
redirectTo: '404',
},
];
export default routes;