diff --git a/front/src/app/app-routing.module.ts b/front/src/app/app-routing.module.ts index 4bc414f..90a7ca2 100644 --- a/front/src/app/app-routing.module.ts +++ b/front/src/app/app-routing.module.ts @@ -29,12 +29,12 @@ const routes: Routes = [ { path: 'home', component: HomeScene, - // canActivate: [OnlyUsersGuardHome], // this route to unregistered path when not logged ==> permit to simplify display + canActivate: [OnlyUsersGuardHome], // this route to unregistered path when not logged ==> permit to simplify display }, { path: 'unregistered', component: HomeOutScene, - // canActivate: [OnlyUnregisteredGuardHome], // jump to the home when registered + canActivate: [OnlyUnregisteredGuardHome], // jump to the home when registered }, // ------------------------------------ // -- SSO Generic interface @@ -55,7 +55,7 @@ const routes: Routes = [ { path: 'upload', component: UploadScene, - // canActivate: [OnlyAdminGuard], + canActivate: [OnlyAdminGuard], }, // ------------------------------------ // -- gender: @@ -64,13 +64,13 @@ const routes: Routes = [ { path: 'gender', component: GenderScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, - // display all (artist | album | traks) + // display all (artist | album | tracks) { path: 'gender/:genderId', component: GenderScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, //{ path: 'gender-edit/:genderId', component: GenderEditScene }, @@ -83,12 +83,12 @@ const routes: Routes = [ { path: 'playlist', component: PlaylistScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, { path: 'playlist/:playlistId', component: PlaylistScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, //{ path: 'playlist-edit/:playlistId', component: PlaylistEditScene }, @@ -100,23 +100,23 @@ const routes: Routes = [ { path: 'artist', component: ArtistsScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, // display list af all artist with a specific gender { path: 'artist/:artistId', component: ArtistScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, { path: 'artist/:artistId/edit', component: ArtistEditScene, - // canActivate: [OnlyAdminGuard], + canActivate: [OnlyAdminGuard], }, { path: 'artist/:artistId/:albumId', component: ArtistAlbumScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, // ------------------------------------ @@ -126,17 +126,17 @@ const routes: Routes = [ { path: 'album', component: AlbumsScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, { path: 'album/:albumId/edit', component: AlbumEditScene, - // canActivate: [OnlyAdminGuard], + canActivate: [OnlyAdminGuard], }, { path: 'album/:albumId', component: AlbumScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, // ------------------------------------ @@ -145,12 +145,12 @@ const routes: Routes = [ { path: 'track/:trackId/edit', component: TrackEditScene, - // canActivate: [OnlyAdminGuard], + canActivate: [OnlyAdminGuard], }, { path: 'track/:genderId/:artistId/:albumId/:trackId', component: TrackScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, // ------------------------------------ @@ -159,7 +159,7 @@ const routes: Routes = [ { path: 'settings', component: SettingsScene, - // canActivate: [OnlyUsersGuard], + canActivate: [OnlyUsersGuard], }, { path: '**', @@ -181,5 +181,4 @@ const routes: Routes = [ ] }) export class AppRoutingModule { } -// export const routing: ModuleWithProviders = RouterModule.forRoot(routes);