blob: caa7df37093bd913a78a1b459f5f587749a06818 [file] [log] [blame]
/********************************************************************************
* Copyright (c) 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 { PersonTypesResolver } from '@pages/admin/person-types/person-types.resolver';
import { PersonTypesListComponent } from '@pages/admin/person-types/person-types-list/person-types-list.component';
import { SalutationsResolver } from '@pages/admin/salutations/salutations.resolver';
import { SalutationsListComponent } from '@pages/admin/salutations/salutations-list/salutations-list.component';
import { CommunicationTypesListComponent } from '@pages/admin/communication-types/communication-types-list/communication-types-list.component';
import { CommunicationTypesResolver } from '@pages/admin/communication-types/communication-types.resolver';
import { AddressTypesListComponent } from '@pages/admin/address-types/address-types-list/address-types-list.component';
import { AddressTypesResolver } from '@pages/admin/address-types/address-types.resolver';
import { Routes, RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
const adminRoutes: Routes = [
{
path: 'salutations',
component: SalutationsListComponent,
resolve: {
salutationsTable: SalutationsResolver
},
},
{
path: 'communication-types',
component: CommunicationTypesListComponent,
resolve: {
communicationTypesTable: CommunicationTypesResolver
},
},
{
path: 'person-types',
component: PersonTypesListComponent,
resolve: {
personTypesTable: PersonTypesResolver
},
},
{
path: 'address-types',
component: AddressTypesListComponent,
resolve: {
personTypesTable: AddressTypesResolver
},
}
];
@NgModule({
imports: [RouterModule.forChild(adminRoutes)],
exports: [RouterModule]
})
export class AdminRoutingModule { }