From 501bc6c2b186f6a724a5b619d15aa44791f13995 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 21 May 2016 18:03:34 +0200 Subject: Thumbnail, author and duration support in client --- client/angular/videos/services/videos.service.ts | 45 ------------------------ 1 file changed, 45 deletions(-) delete mode 100644 client/angular/videos/services/videos.service.ts (limited to 'client/angular/videos/services/videos.service.ts') diff --git a/client/angular/videos/services/videos.service.ts b/client/angular/videos/services/videos.service.ts deleted file mode 100644 index d08548339..000000000 --- a/client/angular/videos/services/videos.service.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Injectable } from '@angular/core'; -import { Http, Response } from '@angular/http'; -import { Observable } from 'rxjs/Rx'; - -import { Video } from '../models/video'; -import { AuthService } from '../../users/services/auth.service'; - -@Injectable() -export class VideosService { - private _baseVideoUrl = '/api/v1/videos/'; - - constructor (private http: Http, private _authService: AuthService) {} - - getVideos() { - return this.http.get(this._baseVideoUrl) - .map(res => res.json()) - .catch(this.handleError); - } - - getVideo(id: string) { - return this.http.get(this._baseVideoUrl + id) - .map(res =>