2017-06-16 07:32:15 -05:00
|
|
|
import { NgModule } from '@angular/core'
|
|
|
|
import { Routes, RouterModule } from '@angular/router'
|
2016-11-20 10:18:15 -06:00
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
redirectTo: '/videos/list',
|
|
|
|
pathMatch: 'full'
|
2017-01-23 15:32:43 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'admin',
|
|
|
|
loadChildren: './+admin#AdminModule'
|
2016-11-20 10:18:15 -06:00
|
|
|
}
|
2017-06-16 07:32:15 -05:00
|
|
|
]
|
2016-11-20 10:18:15 -06:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [ RouterModule.forRoot(routes) ],
|
|
|
|
exports: [ RouterModule ]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule {}
|