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