]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+search/search-routing.module.ts
Fix upload avatar button
[github/Chocobozzz/PeerTube.git] / client / src / app / +search / search-routing.module.ts
1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { SearchComponent } from './search.component'
4 import { ChannelLazyLoadResolver, PlaylistLazyLoadResolver, VideoLazyLoadResolver } from './shared'
5
6 const searchRoutes: Routes = [
7 {
8 path: '',
9 component: SearchComponent,
10 data: {
11 meta: {
12 title: $localize`Search`
13 }
14 }
15 },
16 {
17 path: 'lazy-load-video',
18 component: SearchComponent,
19 resolve: {
20 data: VideoLazyLoadResolver
21 }
22 },
23 {
24 path: 'lazy-load-channel',
25 component: SearchComponent,
26 resolve: {
27 data: ChannelLazyLoadResolver
28 }
29 },
30 {
31 path: 'lazy-load-playlist',
32 component: SearchComponent,
33 resolve: {
34 data: PlaylistLazyLoadResolver
35 }
36 }
37 ]
38
39 @NgModule({
40 imports: [ RouterModule.forChild(searchRoutes) ],
41 exports: [ RouterModule ]
42 })
43 export class SearchRoutingModule {}