aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/app-routing.module.ts
blob: f9465dc9c4ed39bccf7fd56b13d2f8990e2076d8 (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 {}