import { Routes } from '@angular/router';
import { AboutComponent } from './about/about.component';
import { BooksComponent } from './books/books.component';
import { WritersComponent } from './writers/writers.component';
import { TestRouteComponent } from './test-route/test-route.component';
import { aboutGuard } from './guards/about.guard';

export const routes: Routes = [
    {path: "about", component: AboutComponent, canActivate: [aboutGuard]},
    {path: "books", component: BooksComponent},
    {path: "writers", component: WritersComponent},
    {path: "testRoute", component: TestRouteComponent}
];
