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

21 lines
391 B
TypeScript

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 {}