From 60593f6c119d334235cbd06847610d1b3e48bd07 Mon Sep 17 00:00:00 2001 From: Vincent Guillet Date: Wed, 3 Dec 2025 22:46:34 +0100 Subject: [PATCH] Update base URL in index.html for proper routing in Game Over'gne app --- client/src/app/app.routes.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/app/app.routes.ts b/client/src/app/app.routes.ts index dd6b6a7..15fa460 100644 --- a/client/src/app/app.routes.ts +++ b/client/src/app/app.routes.ts @@ -5,7 +5,7 @@ import {LoginComponent} from './pages/auth/login/login.component'; import {ProfileComponent} from './pages/profile/profile.component'; import {guestOnlyCanActivate, guestOnlyCanMatch} from './guards/guest-only.guard'; import {adminOnlyCanActivate, adminOnlyCanMatch} from './guards/admin-only.guard'; -import {authOnlyCanMatch} from './guards/auth-only.guard'; +import {authOnlyCanActivate, authOnlyCanMatch} from './guards/auth-only.guard'; import {PsAdminComponent} from './pages/admin/ps-admin/ps-admin.component'; import {ProductsComponent} from './pages/products/products.component'; @@ -40,13 +40,13 @@ export const routes: Routes = [ path: 'profile', component: ProfileComponent, canMatch: [authOnlyCanMatch], - canActivate: [authOnlyCanMatch] + canActivate: [authOnlyCanActivate] }, { path: 'products', component: ProductsComponent, - canMatch: [authOnlyCanMatch], - canActivate: [authOnlyCanMatch] + canMatch: [adminOnlyCanMatch], + canActivate: [adminOnlyCanActivate] }, { path: 'admin',