blob: f29aa385b12e5ac1b79c5c01dbb97ee7fdd751ee [file] [log] [blame]
/********************************************************************************
* Copyright (c) 2015-2020 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 } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AdminModulesComponent } from './admin-modules.component';
import { ExtSystemComponent } from './extsystem.component';
import { PreferenceRoutingModule } from './preference-routing.module';
const moduleRoutes: Routes = [
{
path: '', component: AdminModulesComponent,
children: [
{ path: 'preferences', loadChildren: './preference.module#PreferenceModule' },
{ path: 'extsystems', component: ExtSystemComponent },
{ path: '', redirectTo: 'preferences', pathMatch: 'full' }
]
}
];
@NgModule({
imports: [
RouterModule.forChild(moduleRoutes)
],
exports: [
RouterModule
]
})
export class AdminRoutingModule { }