From f6eebcb336c067e160a62020a5140d8d992ba384 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 22 Aug 2018 11:51:39 +0200 Subject: Add ability to search a video with an URL --- client/src/app/shared/user-subscription/index.ts | 2 +- client/src/app/shared/video-channel/video-channel.service.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/user-subscription/index.ts b/client/src/app/shared/user-subscription/index.ts index 024b36a41..faddae66a 100644 --- a/client/src/app/shared/user-subscription/index.ts +++ b/client/src/app/shared/user-subscription/index.ts @@ -1,2 +1,2 @@ export * from './user-subscription.service' -export * from './subscribe-button.component' \ No newline at end of file +export * from './subscribe-button.component' diff --git a/client/src/app/shared/video-channel/video-channel.service.ts b/client/src/app/shared/video-channel/video-channel.service.ts index 46b121790..c94411146 100644 --- a/client/src/app/shared/video-channel/video-channel.service.ts +++ b/client/src/app/shared/video-channel/video-channel.service.ts @@ -17,11 +17,6 @@ export class VideoChannelService { videoChannelLoaded = new ReplaySubject(1) - constructor ( - private authHttp: HttpClient, - private restExtractor: RestExtractor - ) {} - static extractVideoChannels (result: ResultList) { const videoChannels: VideoChannel[] = [] @@ -32,6 +27,11 @@ export class VideoChannelService { return { data: videoChannels, total: result.total } } + constructor ( + private authHttp: HttpClient, + private restExtractor: RestExtractor + ) { } + getVideoChannel (videoChannelName: string) { return this.authHttp.get(VideoChannelService.BASE_VIDEO_CHANNEL_URL + videoChannelName) .pipe( -- cgit v1.2.3