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

import { AppHelper }            from '@k-settings/app-helper'

import { ConfiguratorPartialBilka }  from './partial/cmp.configurator-partial.bilka'

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

const routes: Routes = [
	{
		path: '',
		canActivate: [UserGuard],
		component: ConfiguratorPartialBilka,
		children: [

			// This is a WILDCARD CATCH-ALL route that is scoped to the "/app/a"
			// route prefix. It will only catch non-matching routes that live
			// within this portion of the router tree.
			{
				path: "**",
				component: ConfiguratorPartialBilka
			}
		]
	}
];

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

