mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-11-09 13:10:44 +00:00
d746147280
Transaction Query Routes
24 lines
1.4 KiB
TypeScript
24 lines
1.4 KiB
TypeScript
import { Routes, RouterModule } from '@angular/router';
|
|
import { ModuleWithProviders } from '@angular/core';
|
|
|
|
import { AppSettingsComponent } from './shared/components/app-settings/app-settings.component';
|
|
import { NotFoundComponent } from './shared/components/not-found/not-found.component';
|
|
import { ServerConfigComponent } from './shared/components/server-config/server-config.component';
|
|
import { HelpComponent } from './shared/components/help/help.component';
|
|
import { SigninComponent } from './shared/components/signin/signin.component';
|
|
import { ErrorComponent } from './shared/components/error/error.component';
|
|
import { AuthGuard } from './shared/services/auth.guard';
|
|
|
|
export const routes: Routes = [
|
|
{ path: 'lnd', loadChildren: () => import('./lnd/lnd.module').then(childModule => childModule.LNDModule), canActivate: [AuthGuard] },
|
|
{ path: 'cl', loadChildren: () => import('./clightning/cl.module').then(childModule => childModule.CLModule), canActivate: [AuthGuard] },
|
|
{ path: 'advanced', component: ServerConfigComponent, canActivate: [AuthGuard] },
|
|
{ path: 'settings', component: AppSettingsComponent, canActivate: [AuthGuard] },
|
|
{ path: 'help', component: HelpComponent },
|
|
{ path: 'login', component: SigninComponent },
|
|
{ path: 'error', component: ErrorComponent },
|
|
{ path: '**', component: NotFoundComponent }
|
|
];
|
|
|
|
export const routing: ModuleWithProviders = RouterModule.forRoot(routes);
|