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

import { DashboardComponent } from './dashboard.component';
import { AuthResolver } from 'src/app/core/services';

const routes: Routes = [
    {
        path: '',
        component: DashboardComponent,
        resolve: {
            isAuthenticated: AuthResolver
        }
    }
];

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