fix(test): move all test apps

This commit is contained in:
thomas
2023-10-18 10:35:53 +02:00
parent 058c7b04a0
commit 9a151be595
254 changed files with 273 additions and 273 deletions

View File

@@ -0,0 +1,28 @@
import { ActivatedRouteSnapshot, Route } from '@angular/router';
import { bookGuard } from './book.guard';
export const appRoutes: Route[] = [
{
path: '',
pathMatch: 'full',
redirectTo: 'search',
},
{
path: 'search',
loadComponent: () => import('./search.component'),
},
{
path: 'shelf',
canActivate: [(route: ActivatedRouteSnapshot) => bookGuard(route)],
loadComponent: () => import('./shelf.component'),
},
{
path: 'no-result',
loadComponent: () => import('./no-book-search.component'),
},
{
path: '**',
pathMatch: 'full',
redirectTo: 'search',
},
];