aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account-routing.module.ts
blob: 2e9de1cfb19dacd7c5c57c9782749e73a929f0a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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'

const accountRoutes: Routes = [
  {
    path: 'account',
    component: AccountComponent,
    canActivateChild: [ MetaGuard, LoginGuard ],
    children: [
      {
        path: 'settings',
        component: AccountSettingsComponent,
        data: {
          meta: {
            title: 'Account settings'
          }
        }
      },
      // {
      //   path: 'videos',
      //   component: AccountVideosComponent,
      //   data: {
      //     meta: {
      //       title: 'Account videos'
      //     }
      //   }
      // }
    ]
  }
]

@NgModule({
  imports: [ RouterModule.forChild(accountRoutes) ],
  exports: [ RouterModule ]
})
export class AccountRoutingModule {}