import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthGuard } from '../auth.guard';

import { WorkFlowComponent } from './workflow/workflow.component';
import { WorkflowconfigurationComponent } from './workflowconfiguration/workflowconfiguration.component';

const routes: Routes = [
  { path: '', component: WorkflowconfigurationComponent, canActivate: [AuthGuard] },
  { path: 'workflow', component: WorkFlowComponent, canActivate: [AuthGuard] },
  { path: 'workflowdefinition', component: WorkflowconfigurationComponent, canActivate: [AuthGuard] }
];

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