blob: 6663aebb91541dc1e4db0ae6f7ff00fe40fa47eb [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2015-2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
********************************************************************************/
import { NgModule, Component } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MDMNavigatorViewComponent } from './navigator-view/mdm-navigator-view.component';
import { AdminModulesComponent } from './administration/admin-modules.component';
const appRoutes: Routes = [
{ path: '', redirectTo: 'navigator', pathMatch: 'full' },
{ path: 'navigator', component: MDMNavigatorViewComponent, loadChildren: './modules/mdm-modules.module#MDMModulesModule' },
{ path: 'administration', component: AdminModulesComponent, loadChildren: './administration/admin.module#AdminModule' }
];
@NgModule({
imports: [
RouterModule.forRoot(appRoutes)
],
exports: [
RouterModule
]
})
export class AppRoutingModule {}