]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/shared/video.service.ts
Support roles with rights and add moderator role
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / shared / video.service.ts
index 06fb3313ea7d52127b8a1cfedff649ba8036bfee..8fdc1f213fae0e55aeb205ba02a9a2df7243d895 100644 (file)
@@ -36,7 +36,7 @@ export class VideoService {
     private restService: RestService
   ) {}
 
-  getVideo (uuid: string) {
+  getVideo (uuid: string): Observable<VideoDetails> {
     return this.authHttp.get<VideoDetailsServerModel>(VideoService.BASE_VIDEO_URL + uuid)
                         .map(videoHash => new VideoDetails(videoHash))
                         .catch((res) => this.restExtractor.handleError(res))