Files
grimmory/booklore-ui/src/app/app.routes.ts
T
aditya.chandel f0123c9776 WIP: App Settings
2025-01-15 17:38:45 -07:00

39 lines
1.2 KiB
TypeScript

import {Routes} from '@angular/router';
import {PdfViewerComponent} from './book/components/pdf-viewer/pdf-viewer.component';
import {BookBrowserComponent} from './book/components/book-browser/book-browser.component';
import {MainDashboardComponent} from './dashboard/components/main-dashboard/main-dashboard.component';
import {AppLayoutComponent} from './layout/component/layout-main/app.layout.component';
import {EpubViewerComponent} from './epub-viewer/component/epub-viewer.component';
import {SettingsComponent} from './core/component/settings/settings.component';
export const routes: Routes = [
{
path: '', component: AppLayoutComponent,
children: [
{
path: '', component: MainDashboardComponent,
},
{
path: 'all-books', component: BookBrowserComponent,
},
{
path: 'settings', component: SettingsComponent,
},
{
path: 'library/:libraryId/books', component: BookBrowserComponent,
},
{
path: 'shelf/:shelfId/books', component: BookBrowserComponent,
}
]
},
{
path: 'pdf-viewer/book/:bookId',
component: PdfViewerComponent
},
{
path: 'epub-viewer/book/:bookId',
component: EpubViewerComponent
}
];