import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LogbookComponent } from './logbook.component';
import { AuthGuard, AuthResolver } from 'src/app/core/services';

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

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