Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Added manga/book routes back in (#503)

Joseph Milazzo643b12508a9a
diff --git a/UI/Web/src/app/app-routing.module.ts b/UI/Web/src/app/app-routing.module.ts
index b52054c49..0223e534a 100644
--- a/UI/Web/src/app/app-routing.module.ts
+++ b/UI/Web/src/app/app-routing.module.ts
@@ -24,7 +24,6 @@ const routes: Routes = [
path: 'collections',
loadChildren: () => import('./collections/collections.module').then(m => m.CollectionsModule)
},
- {path: 'library', component: LibraryComponent},
{
path: '',
runGuardsAndResolvers: 'always',
@@ -32,6 +31,14 @@ const routes: Routes = [
children: [
{path: 'library/:id', component: LibraryDetailComponent},
{path: 'library/:libraryId/series/:seriesId', component: SeriesDetailComponent},
+ {
+ path: 'library/:libraryId/series/:seriesId/manga',
+ loadChildren: () => import('../app/manga-reader/manga-reader.module').then(m => m.MangaReaderModule)
+ },
+ {
+ path: 'library/:libraryId/series/:seriesId/book',
+ loadChildren: () => import('../app/book-reader/book-reader.module').then(m => m.BookReaderModule)
+ }
]
},
{
@@ -39,6 +46,7 @@ const routes: Routes = [
runGuardsAndResolvers: 'always',
canActivate: [AuthGuard],
children: [
+ {path: 'library', component: LibraryComponent},
{path: 'recently-added', component: RecentlyAddedComponent},
{path: 'in-progress', component: InProgressComponent},
{path: 'preferences', component: UserPreferencesComponent},