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.
20 lines
443 B
20 lines
443 B
3 years ago
|
import { NgModule } from '@angular/core';
|
||
|
import { Routes, RouterModule } from '@angular/router';
|
||
|
|
||
|
import {ViewerPage} from './viewer.page';
|
||
|
import {EditorGuard} from '../../service/guard/Editor.guard';
|
||
|
|
||
|
const routes: Routes = [
|
||
|
{
|
||
|
path: 'site',
|
||
|
canActivate: [EditorGuard],
|
||
|
component: ViewerPage
|
||
|
}
|
||
|
];
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [RouterModule.forChild(routes)],
|
||
|
exports: [RouterModule],
|
||
|
})
|
||
|
export class ViewerPageRoutingModule {}
|