You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.7 KiB
65 lines
1.7 KiB
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import { ActivateGuard } from '@app/core/guards/activate.guard';
|
|
import { LayoutsModule } from '@app/layouts/layouts.module';
|
|
import { AdminComponent } from '@app/layouts/admin/admin.component';
|
|
import { AuthComponent } from '@app/layouts/auth/auth.component';
|
|
import { MessageComponent } from '@app/layouts/admin/message/message.component'
|
|
import { LoginComponent } from '@app/layouts/auth/login/login.component';
|
|
import { ExpireComponent } from '@app/layouts/auth/expire/expire.component';
|
|
import { InitialComponent } from '@app/layouts/auth/initial/initial.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: AdminComponent,
|
|
canActivate: [ActivateGuard],
|
|
canActivateChild: [ActivateGuard],
|
|
children: [
|
|
{
|
|
path: 'message',
|
|
component: MessageComponent,
|
|
data: {
|
|
anymouse: true
|
|
}
|
|
},
|
|
{
|
|
path: 'basic',
|
|
loadChildren: () => import('./basic/basic.module').then(m => m.BasicModule)
|
|
},
|
|
{
|
|
path: 'wcs',
|
|
loadChildren: () => import('./wcs/wcs.module').then(m => m.WcsModule)
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: 'auth',
|
|
component: AuthComponent,
|
|
children: [
|
|
{
|
|
path: 'login',
|
|
component: LoginComponent
|
|
},
|
|
{
|
|
path: 'expire',
|
|
component: ExpireComponent
|
|
},
|
|
{
|
|
path: 'initial',
|
|
component: InitialComponent
|
|
}
|
|
]
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
LayoutsModule,
|
|
RouterModule.forRoot(routes, { relativeLinkResolution: 'legacy' })
|
|
],
|
|
exports: [
|
|
RouterModule
|
|
]
|
|
})
|
|
export class RoutesRoutingModule { }
|