aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+search/search-routing.module.ts
blob: 5d00aae137e2c1a05892930b4f619898c2db0d3c (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                      
                                                    
                                                                                                   


                              
             
                               

             
                                

       

    
                            
                               




                                 
                              
                               


                                   






                                    







                                                   
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { SearchComponent } from './search.component'
import { ChannelLazyLoadResolver, PlaylistLazyLoadResolver, VideoLazyLoadResolver } from './shared'

const searchRoutes: Routes = [
  {
    path: '',
    component: SearchComponent,
    data: {
      meta: {
        title: $localize`Search`
      }
    }
  },
  {
    path: 'lazy-load-video',
    component: SearchComponent,
    resolve: {
      data: VideoLazyLoadResolver
    }
  },
  {
    path: 'lazy-load-channel',
    component: SearchComponent,
    resolve: {
      data: ChannelLazyLoadResolver
    }
  },
  {
    path: 'lazy-load-playlist',
    component: SearchComponent,
    resolve: {
      data: PlaylistLazyLoadResolver
    }
  }
]

@NgModule({
  imports: [ RouterModule.forChild(searchRoutes) ],
  exports: [ RouterModule ]
})
export class SearchRoutingModule {}