]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/app-routing.module.ts
8036c52e6a7580800ac1f2def34de2ba8b1d8a64
[github/Chocobozzz/PeerTube.git] / client / src / app / app-routing.module.ts
1 import { NgModule } from '@angular/core'
2 import { Routes, RouterModule } from '@angular/router'
3
4 const routes: Routes = [
5 {
6 path: '',
7 redirectTo: '/videos/list',
8 pathMatch: 'full'
9 },
10 {
11 path: 'admin',
12 loadChildren: './+admin#AdminModule'
13 }
14 ]
15
16 @NgModule({
17 imports: [ RouterModule.forRoot(routes) ],
18 exports: [ RouterModule ]
19 })
20 export class AppRoutingModule {}