PeerTube/client/src/app/app-routing.module.ts

21 lines
391 B
TypeScript
Raw Normal View History

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
}
]
2016-11-20 10:18:15 -06:00
@NgModule({
imports: [ RouterModule.forRoot(routes) ],
exports: [ RouterModule ]
})
export class AppRoutingModule {}