# Conflicts: # apps/web/src/app/core/api/game-api.service.ts # apps/web/src/app/features/combat/combat-page/combat-page.component.html # apps/web/src/app/features/combat/combat-page/combat-page.component.scss # apps/web/src/app/features/combat/combat-page/combat-page.component.spec.ts # apps/web/src/app/features/combat/combat-page/combat-page.component.ts
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
import { Routes } from '@angular/router';
|
|
import { AppShellComponent } from './layout/app-shell/app-shell.component';
|
|
|
|
export const routes: Routes = [
|
|
{ path: '', pathMatch: 'full', redirectTo: 'location' },
|
|
{
|
|
path: '',
|
|
component: AppShellComponent,
|
|
children: [
|
|
{
|
|
path: 'location',
|
|
loadComponent: () =>
|
|
import('./features/world/location-page/location-page.component').then(
|
|
(module) => module.LocationPageComponent,
|
|
),
|
|
},
|
|
{
|
|
path: 'world',
|
|
loadComponent: () =>
|
|
import('./features/world/world-page.component').then(
|
|
(module) => module.WorldPageComponent,
|
|
),
|
|
},
|
|
{
|
|
path: 'hunt',
|
|
loadComponent: () =>
|
|
import('./features/hunting/hunt-page/hunt-page.component').then(
|
|
(module) => module.HuntPageComponent,
|
|
),
|
|
},
|
|
{
|
|
path: 'combat/:combatId',
|
|
loadComponent: () =>
|
|
import('./features/combat/combat-page/combat-page.component').then(
|
|
(module) => module.CombatPageComponent,
|
|
),
|
|
},
|
|
{
|
|
path: 'inventory',
|
|
loadComponent: () =>
|
|
import('./features/inventory/inventory-page.component').then(
|
|
(module) => module.InventoryPageComponent,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
{ path: '**', redirectTo: 'location' },
|
|
];
|