aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/account/account-routing.module.ts
blob: 74d9aa03e6abb0e21a3786a83888b0a82142a709 (plain) (tree)
1
2
3
4
5
6
7

                                                      
 

                                          
                                    
                                                      




                                
                                           

             
                           


       
 





                                                    
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'

const accountRoutes: Routes = [
  {
    path: 'account',
    component: AccountComponent,
    canActivate: [ MetaGuard, LoginGuard ],
    data: {
      meta: {
        title: 'My account'
      }
    }
  }
]

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