/*
 * ******************************************************************
 * Copyright (c) 2025 Broadcom. All Rights Reserved.
 * Broadcom Confidential. The term "Broadcom" refers to Broadcom Inc.
 * and/or its subsidiaries.
 * ******************************************************************
 */

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from "./home/home.component";
import { AllInOneComponent } from "./all-in-one/all-in-one.component";
import { DYNAMIC_PATH_GUARD_FN } from "@vcf/ng-hyper-plugin-framework";
import { VmActionsDemoComponent } from './all-in-one/vm-actions/vm-actions-demo.component';

const routes: Routes = [
    {
        path: "",
        redirectTo: "welcome",
        pathMatch: "full",
    },
    {
        path: "welcome",
        component: HomeComponent,
    },
    {
        path: "aio",
        component: AllInOneComponent,
        children: [
            {
                path: "plugins",
                children: [],
            },
            {
                path: "vcf-services",
                children: [],
            },
            {
                path: "vm-actions",
                component: VmActionsDemoComponent,
            }
        ]
    },
    {
        path: "**",
        canActivate: [DYNAMIC_PATH_GUARD_FN(true)],
        children: []
    }
];

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