import { Routes } from '@angular/router';
import { DashboardComponent } from './pages/dashboard/dashboard.component';
import { LayoutsComponent } from './pages/dashboard/layouts/layouts.component';
import { GraphComponent } from './pages/dashboard/page/graph/graph.component';
import { AuthComponent } from './pages/auth/auth.component';

export const routes: Routes = [
    {
        path: '',
        redirectTo:'dashboard',
        pathMatch:'full'
    },
    {
        path: 'auth', 
        component: AuthComponent
    },
    {
        path: '', 
        component: LayoutsComponent,
        children:[
            {
                path: 'dashboard',
                component: DashboardComponent,
            }, 
            {
                path: 'graph',
                component: GraphComponent
            },
        ]
    }
];
