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

import { AppHelper }            from '@k-settings/app-helper'
import { ConfiguratorComponent } from './components/configurator/cmp.configurator';


const routes: Routes = [
    {
        path: '',
        component: ConfiguratorComponent,
        // 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: ConfiguratorComponent
        //     }
        // ]
    },
    {
        path: ':guid',
        component: ConfiguratorComponent
    },
    {
        path: ':guid/:variant',
        component: ConfiguratorComponent
    }
]


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

export class PlatoConfiguratorRoutingModule {}