aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorRonan <flyingrub@protonmail.com>2017-10-13 08:14:40 +0200
committerBigard Florian <florian.bigard@gmail.com>2017-10-13 08:14:40 +0200
commit334ddfa47120ae53bc2643792ec5e1065a4d1141 (patch)
treefd9274d1e232e11c11b9ca7ed6c13824c85beceb /client/src/app
parentf47bf2e142b0b22460558e23720f5aed8deb982c (diff)
downloadPeerTube-334ddfa47120ae53bc2643792ec5e1065a4d1141.tar.gz
PeerTube-334ddfa47120ae53bc2643792ec5e1065a4d1141.tar.zst
PeerTube-334ddfa47120ae53bc2643792ec5e1065a4d1141.zip
Fix some inconsistency in link (#97)
Some link could appear with double // in url. e.g : "POST /api/v1/videos//upload HTTP/1.1"
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))