From 75508d9ebb8662ecc5769b18cbc11d99cbf01adb Mon Sep 17 00:00:00 2001
From: Phan Huy Tran
Date: Wed, 4 Jun 2025 10:12:15 +0200
Subject: [PATCH] fix: lootbox routing
---
frontend/src/app/app.routes.ts | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts
index 88f4fe1..f6611b9 100644
--- a/frontend/src/app/app.routes.ts
+++ b/frontend/src/app/app.routes.ts
@@ -62,14 +62,12 @@ export const routes: Routes = [
loadComponent: () =>
import('./feature/lootboxes/lootbox-selection/lootbox-selection.component'),
canActivate: [authGuard],
- children: [
- {
- path: 'open/:id',
- loadComponent: () =>
- import('./feature/lootboxes/lootbox-opening/lootbox-opening.component'),
- canActivate: [authGuard],
- },
- ],
+ },
+ {
+ path: 'lootboxes/open/:id',
+ loadComponent: () =>
+ import('./feature/lootboxes/lootbox-opening/lootbox-opening.component'),
+ canActivate: [authGuard],
},
{
path: 'dice',