Update base URL in index.html for proper routing in Game Over'gne app
This commit is contained in:
@@ -5,7 +5,7 @@ import {LoginComponent} from './pages/auth/login/login.component';
|
|||||||
import {ProfileComponent} from './pages/profile/profile.component';
|
import {ProfileComponent} from './pages/profile/profile.component';
|
||||||
import {guestOnlyCanActivate, guestOnlyCanMatch} from './guards/guest-only.guard';
|
import {guestOnlyCanActivate, guestOnlyCanMatch} from './guards/guest-only.guard';
|
||||||
import {adminOnlyCanActivate, adminOnlyCanMatch} from './guards/admin-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 {PsAdminComponent} from './pages/admin/ps-admin/ps-admin.component';
|
||||||
import {ProductsComponent} from './pages/products/products.component';
|
import {ProductsComponent} from './pages/products/products.component';
|
||||||
|
|
||||||
@@ -40,13 +40,13 @@ export const routes: Routes = [
|
|||||||
path: 'profile',
|
path: 'profile',
|
||||||
component: ProfileComponent,
|
component: ProfileComponent,
|
||||||
canMatch: [authOnlyCanMatch],
|
canMatch: [authOnlyCanMatch],
|
||||||
canActivate: [authOnlyCanMatch]
|
canActivate: [authOnlyCanActivate]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'products',
|
path: 'products',
|
||||||
component: ProductsComponent,
|
component: ProductsComponent,
|
||||||
canMatch: [authOnlyCanMatch],
|
canMatch: [adminOnlyCanMatch],
|
||||||
canActivate: [authOnlyCanMatch]
|
canActivate: [adminOnlyCanActivate]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'admin',
|
path: 'admin',
|
||||||
|
|||||||
Reference in New Issue
Block a user