X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Faccount%2Faccount-routing.module.ts;h=070b9b5c5cce96d3356bcfc3de47292e621f7fde;hb=202f6b6c9dcc9b0aec4b0c1b15e455c22a7952a7;hp=e9b8f703145a406c4ff19b93956353abd0f14d30;hpb=df98563e2104b82b119c00a3cd83cd0dc1242d25;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/account/account-routing.module.ts b/client/src/app/account/account-routing.module.ts index e9b8f7031..070b9b5c5 100644 --- a/client/src/app/account/account-routing.module.ts +++ b/client/src/app/account/account-routing.module.ts @@ -1,17 +1,38 @@ import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' +import { MetaGuard } from '@ngx-meta/core' + +import { LoginGuard } from '../core' import { AccountComponent } from './account.component' +import { AccountSettingsComponent } from './account-settings/account-settings.component' +import { AccountVideosComponent } from './account-videos/account-videos.component' const accountRoutes: Routes = [ { path: 'account', component: AccountComponent, - data: { - meta: { - title: 'My account' + canActivateChild: [ MetaGuard, LoginGuard ], + children: [ + { + path: 'settings', + component: AccountSettingsComponent, + data: { + meta: { + title: 'Account settings' + } + } + }, + { + path: 'videos', + component: AccountVideosComponent, + data: { + meta: { + title: 'Account videos' + } + } } - } + ] } ]