mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-14 16:20:04 +00:00
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
import {NgModule} from '@angular/core';
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
import {PageNotFoundComponent} from "./components/page-not-found/page-not-found.component";
|
|
import {NavbarLayoutComponent} from "./layouts/navbar-layout/navbar-layout.component";
|
|
import {LibraryOverviewComponent} from "./components/library-overview/library-overview.component";
|
|
import {GameDetailViewComponent} from "./components/game-detail-view/game-detail-view.component";
|
|
import {LibraryManagementComponent} from "./components/library-management/library-management.component";
|
|
import {MappedGamesTableComponent} from "./components/mapped-games-table/mapped-games-table.component";
|
|
|
|
const appRoutes: Routes = [
|
|
{
|
|
path: '',
|
|
component: NavbarLayoutComponent,
|
|
children: [
|
|
{
|
|
path: 'library',
|
|
component: LibraryOverviewComponent
|
|
},
|
|
{
|
|
path: 'game/:slug',
|
|
component: GameDetailViewComponent
|
|
},
|
|
{
|
|
path: 'library-management',
|
|
component: LibraryManagementComponent
|
|
},
|
|
{
|
|
path: 'test',
|
|
component: MappedGamesTableComponent
|
|
},
|
|
{
|
|
path: '',
|
|
redirectTo: '/library',
|
|
pathMatch: 'full'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '**',
|
|
component: PageNotFoundComponent
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(appRoutes)],
|
|
exports: [RouterModule]
|
|
})
|
|
|
|
export class AppRoutingModule {
|
|
}
|