mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2025-03-20 22:28:51 +00:00
36 lines
1 KiB
TypeScript
36 lines
1 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import { PageNotFoundComponent } from './shared/components';
|
|
|
|
import { HomeRoutingModule } from './pages/home/home-routing.module';
|
|
import { DetailRoutingModule } from './pages/detail/detail-routing.module';
|
|
import { HardForkInfoRoutingModule } from './pages/hard-fork-info/hard-fork-info-routing.module';
|
|
import { SettingsModule } from './pages/settings/settings.module';
|
|
import { TransactionsModule } from './pages/transactions/transactions.module';
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
redirectTo: 'detail',
|
|
pathMatch: 'full'
|
|
},
|
|
{
|
|
path: '**',
|
|
component: PageNotFoundComponent
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forRoot(routes, {}),
|
|
FormsModule,
|
|
HomeRoutingModule,
|
|
DetailRoutingModule,
|
|
TransactionsModule,
|
|
HardForkInfoRoutingModule,
|
|
SettingsModule
|
|
],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule { }
|