aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/videos/shared/video.service.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts
index fe7f9108d..fc552f2b5 100644
--- a/client/src/app/videos/shared/video.service.ts
+++ b/client/src/app/videos/shared/video.service.ts
@@ -52,13 +52,13 @@ export class VideoService {
52 nsfw: video.nsfw 52 nsfw: video.nsfw
53 } 53 }
54 54
55 return this.authHttp.put(`${VideoService.BASE_VIDEO_URL}/${video.id}`, body) 55 return this.authHttp.put(VideoService.BASE_VIDEO_URL + video.id, body)
56 .map(this.restExtractor.extractDataBool) 56 .map(this.restExtractor.extractDataBool)
57 .catch(this.restExtractor.handleError) 57 .catch(this.restExtractor.handleError)
58 } 58 }
59 59
60 uploadVideo (video: FormData) { 60 uploadVideo (video: FormData) {
61 const req = new HttpRequest('POST', `${VideoService.BASE_VIDEO_URL}/upload`, video, { reportProgress: true }) 61 const req = new HttpRequest('POST', VideoService.BASE_VIDEO_URL + 'upload', video, { reportProgress: true })
62 62
63 return this.authHttp.request(req) 63 return this.authHttp.request(req)
64 .catch(this.restExtractor.handleError) 64 .catch(this.restExtractor.handleError)
@@ -116,7 +116,7 @@ export class VideoService {
116 } 116 }
117 117
118 getUserVideoRating (id: number): Observable<UserVideoRate> { 118 getUserVideoRating (id: number): Observable<UserVideoRate> {
119 const url = UserService.BASE_USERS_URL + '/me/videos/' + id + '/rating' 119 const url = UserService.BASE_USERS_URL + 'me/videos/' + id + '/rating'
120 120
121 return this.authHttp.get(url) 121 return this.authHttp.get(url)
122 .catch(res => this.restExtractor.handleError(res)) 122 .catch(res => this.restExtractor.handleError(res))