cic-staff-client/src/app/pages/pages-routing.module.ts

37 lines
1.0 KiB
TypeScript
Raw Normal View History

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PagesComponent } from './pages.component';
const routes: Routes = [
{ path: 'home', component: PagesComponent },
2021-05-10 18:15:25 +02:00
{
path: 'tx',
loadChildren: () =>
import('@pages/transactions/transactions.module').then((m) => m.TransactionsModule),
},
{
path: 'settings',
loadChildren: () => import('@pages/settings/settings.module').then((m) => m.SettingsModule),
},
{
path: 'accounts',
loadChildren: () => import('@pages/accounts/accounts.module').then((m) => m.AccountsModule),
},
{
path: 'tokens',
loadChildren: () => import('@pages/tokens/tokens.module').then((m) => m.TokensModule),
},
// {
// path: 'admin',
// loadChildren: () => import('@pages/admin/admin.module').then((m) => m.AdminModule),
// },
2021-05-10 18:15:25 +02:00
{ path: '**', redirectTo: 'home', pathMatch: 'full' },
];
@NgModule({
imports: [RouterModule.forChild(routes)],
2021-05-10 18:15:25 +02:00
exports: [RouterModule],
})
2021-05-10 18:15:25 +02:00
export class PagesRoutingModule {}