import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { FrontcraftDashboardComponent } from './dashboard/dashboard.component';
import { PagesLayoutComponent } from './pages-layout.component';

export const routes: Routes = [
    {
        path: '',
        component: PagesLayoutComponent,
        children: [
            {
                path: 'dashboard',
                component: FrontcraftDashboardComponent,
            },
            {
                path: '**',
                redirectTo: 'dashboard'
            },
        ]
    }    
];

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