mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 01:16:15 -08:00
refactor: remove player module, update routes
This commit is contained in:
1 parent
3d4f549eef
commit
41fa66cbfa
2 files changed
+12
-24
No files matched your search
@@ -9,18 +9,24 @@ const routes: Routes = [
|
||||
},
|
||||
{
|
||||
path: 'playlists',
|
||||
loadChildren: () =>
|
||||
import('./player/player.module').then((m) => m.PlayerModule),
|
||||
loadComponent: () =>
|
||||
import(
|
||||
'./player/components/video-player/video-player.component'
|
||||
).then((c) => c.VideoPlayerComponent),
|
||||
},
|
||||
{
|
||||
path: 'iptv',
|
||||
loadChildren: () =>
|
||||
import('./player/player.module').then((m) => m.PlayerModule),
|
||||
loadComponent: () =>
|
||||
import(
|
||||
'./player/components/video-player/video-player.component'
|
||||
).then((c) => c.VideoPlayerComponent),
|
||||
},
|
||||
{
|
||||
path: 'playlists/:id',
|
||||
loadChildren: () =>
|
||||
import('./player/player.module').then((m) => m.PlayerModule),
|
||||
loadComponent: () =>
|
||||
import(
|
||||
'./player/components/video-player/video-player.component'
|
||||
).then((c) => c.VideoPlayerComponent),
|
||||
},
|
||||
{
|
||||
path: 'settings',
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
import { OverlayModule } from '@angular/cdk/overlay';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { VideoPlayerComponent } from './components/video-player/video-player.component';
|
||||
|
||||
const routes: Routes = [{ path: '', component: VideoPlayerComponent }];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
OverlayModule,
|
||||
RouterModule.forChild(routes),
|
||||
SharedModule,
|
||||
],
|
||||
})
|
||||
export class PlayerModule {}
|
||||
Reference in new issue
Block a user