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

                                                      





                               



                                        
   
 





                                            
import { NgModule } from '@angular/core'
import { Routes, RouterModule } from '@angular/router'

const routes: Routes = [
  {
    path: '',
    redirectTo: '/videos/list',
    pathMatch: 'full'
  },
  {
    path: 'admin',
    loadChildren: './+admin#AdminModule'
  }
]

@NgModule({
  imports: [ RouterModule.forRoot(routes) ],
  exports: [ RouterModule ]
})
export class AppRoutingModule {}