]>
Commit | Line | Data |
---|---|---|
57c36b27 C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
1942f11d | 3 | import { SearchComponent } from './search.component' |
37a44fc9 | 4 | import { ChannelLazyLoadResolver, PlaylistLazyLoadResolver, VideoLazyLoadResolver } from './shared' |
57c36b27 C |
5 | |
6 | const 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 | }) | |
43 | export class SearchRoutingModule {} |