import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { AuthGuard } from 'dist/common';
import { AdminComponent } from './admin.component';

const routes = [   
  {
      path: '',
      component: AdminComponent,
      canActivate: [AuthGuard],
      data: {
        role: 'admin'
      }   
  }
];

@NgModule({
  imports: [
      RouterModule.forChild(routes),
  ],
  exports: [
      RouterModule
  ]
})
export class AdminRouterModule { }