Add AuthGuard on the quick-wizard module (ref #227)
This commit is contained in:
parent
4e7e269130
commit
64e326396a
|
@ -2,11 +2,13 @@ import { NgModule } from '@angular/core';
|
|||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { QuickWizardEditorComponent } from './quick-wizard-editor/quick-wizard-editor.component';
|
||||
import { CanDeactivateGuard } from '../../library/deactivate/can-deactivate.guard';
|
||||
import { AuthGuard } from '@app/core/auth-guard.service';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: QuickWizardEditorComponent,
|
||||
canActivate: [AuthGuard],
|
||||
data: {
|
||||
breadcrumb: true
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue