diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index fab3a73..793776c 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,6 +1,18 @@ -import { Routes } from '@angular/router'; +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: '', pathMatch: 'full', redirectTo: '/welcome'}, + {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) }, ]; diff --git a/src/app/pages/author/author.routes.ts b/src/app/pages/author/author.routes.ts new file mode 100644 index 0000000..18e719a --- /dev/null +++ b/src/app/pages/author/author.routes.ts @@ -0,0 +1,6 @@ +import { Routes } from '@angular/router'; +import { Author } from './author'; + +export const AUTHOR_ROUTES: Routes = [ + { path: '', component: Author }, +] diff --git a/src/app/pages/book/book.routes.ts b/src/app/pages/book/book.routes.ts new file mode 100644 index 0000000..fa4f842 --- /dev/null +++ b/src/app/pages/book/book.routes.ts @@ -0,0 +1,6 @@ +import { Routes } from '@angular/router'; +import { Book } from './book'; + +export const BOOK_ROUTES: Routes = [ + { path: '', component: Book }, +] diff --git a/src/app/pages/loan/loan.routes.ts b/src/app/pages/loan/loan.routes.ts new file mode 100644 index 0000000..c1740a6 --- /dev/null +++ b/src/app/pages/loan/loan.routes.ts @@ -0,0 +1,6 @@ +import { Routes } from '@angular/router'; +import { Loan } from './loan'; + +export const LOAN_ROUTES: Routes = [ + { path: '', component: Loan }, +] diff --git a/src/app/pages/user/user.routes.ts b/src/app/pages/user/user.routes.ts new file mode 100644 index 0000000..94ea474 --- /dev/null +++ b/src/app/pages/user/user.routes.ts @@ -0,0 +1,6 @@ +import { Routes } from '@angular/router'; +import { User } from './user'; + +export const USER_ROUTES: Routes = [ + { path: '', component: User }, +]