created routes pages

This commit is contained in:
2025-11-07 12:35:11 +01:00
parent 4d5f34f39f
commit 03d0afcd06
5 changed files with 39 additions and 3 deletions

View File

@@ -2,5 +2,17 @@ import { Routes } from '@angular/router';
export const routes: Routes = [
{path: '', pathMatch: 'full', redirectTo: '/welcome'},
{ path: 'welcome', loadChildren: () => import('./pages/welcome/welcome.routes').then(m => m.WELCOME_ROUTES) }
{path: 'welcome', loadChildren: () => import('./pages/welcome/welcome.routes').then(m => m.WELCOME_ROUTES)},
{path: '', pathMatch: 'full', redirectTo: '/book'},
{path: 'book', loadChildren: () => import('./pages/book/book.routes').then(m => m.BOOK_ROUTES)},
{path: '', pathMatch: 'full', redirectTo: '/author'},
{path: 'author', loadChildren: () => import('./pages/author/author.routes').then(m => m.AUTHOR_ROUTES)},
{path: '', pathMatch: 'full', redirectTo: '/loan'},
{path: 'loan', loadChildren: () => import('./pages/loan/loan.routes').then(m => m.LOAN_ROUTES)},
{ path: '', pathMatch: 'full', redirectTo: '/user' },
{ path: 'user', loadChildren: () => import('./pages/user/user.routes').then(m => m.USER_ROUTES) },
];

View File

@@ -0,0 +1,6 @@
import { Routes } from '@angular/router';
import { Author } from './author';
export const AUTHOR_ROUTES: Routes = [
{ path: '', component: Author },
]

View File

@@ -0,0 +1,6 @@
import { Routes } from '@angular/router';
import { Book } from './book';
export const BOOK_ROUTES: Routes = [
{ path: '', component: Book },
]

View File

@@ -0,0 +1,6 @@
import { Routes } from '@angular/router';
import { Loan } from './loan';
export const LOAN_ROUTES: Routes = [
{ path: '', component: Loan },
]

View File

@@ -0,0 +1,6 @@
import { Routes } from '@angular/router';
import { User } from './user';
export const USER_ROUTES: Routes = [
{ path: '', component: User },
]