/**
 * Created through mkmodule
 */

import { NgModule }             from '@angular/core'
import { RouterModule, Routes } from '@angular/router'

import { B2B_SearchView } from './page/cmp.view'

// Guards
import { UserGuard } from '@k-core/guards/guard.User'


const routes: Routes = [

  { path: '',
    canActivate: [UserGuard],
    children: [

      { path: '', component: B2B_SearchView },
      { path: ':needle', component : B2B_SearchView }
    ]
  }

]


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

