Files
library/apps/frontend/src/app/app.routes.ts
T

57 lines
1.8 KiB
TypeScript

import { Route } from '@angular/router';
export const appRoutes: Route[] = [
{
path: '',
loadComponent: () => import('./components/home/home.component').then(m => m.HomeComponent)
},
{
path: 'games',
loadComponent: () => import('./components/games/games-list.component').then(m => m.GamesListComponent)
},
{
path: 'books',
loadComponent: () => import('./components/books/books-list.component').then(m => m.BooksListComponent)
},
{
path: 'music',
loadComponent: () => import('./components/music/music-list.component').then(m => m.MusicListComponent)
},
{
path: 'art',
loadComponent: () => import('./components/art/art-gallery.component').then(m => m.ArtGalleryComponent)
},
{
path: 'shows',
loadComponent: () => import('./components/shows/shows-list.component').then(m => m.ShowsListComponent)
},
{
path: 'manga',
loadComponent: () => import('./components/manga/manga-list.component').then(m => m.MangaListComponent)
},
{
path: 'admin/users',
loadComponent: () => import('./components/admin/admin-users.component').then(m => m.AdminUsersComponent)
},
{
path: 'admin/audit',
loadComponent: () => import('./components/admin/admin-audit.component').then(m => m.AdminAuditComponent)
},
{
path: 'admin/suggestions',
loadComponent: () => import('./components/admin/admin-suggestions.component').then(m => m.AdminSuggestionsComponent)
},
{
path: 'my-suggestions',
loadComponent: () => import('./components/my-suggestions/my-suggestions.component').then(m => m.MySuggestionsComponent)
},
{
path: 'my-likes',
loadComponent: () => import('./components/my-likes/my-likes.component').then(m => m.MyLikesComponent)
},
{
path: '**',
redirectTo: ''
}
];