Skip to content

Commit

Permalink
fix(cloud/store): bring back "/" at the end of url
Browse files Browse the repository at this point in the history
  • Loading branch information
pcholuj committed Jun 7, 2019
1 parent ccb9a41 commit 14ba091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/api/cloud.spec.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('cloud', () => {

scope.post('/auth/logout').reply(200, mockLogout);
scope.post('/folder/list').reply(200, (_, data) => mockList(JSON.parse(data)));
scope.post('/store').reply(200, (_, data) => mockStore(JSON.parse(data)));
scope.post('/store/').reply(200, (_, data) => mockStore(JSON.parse(data)));
scope.post('/metadata').reply(200, mockMetadata);

scope.post(/\/recording\/(audio|video)\/init/).reply(200, mockTokInit);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/api/cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class CloudClient {
}

return requestWithSource()
.post(`${this.cloudApiUrl}/store`, payload, requestOptions)
.post(`${this.cloudApiUrl}/store/`, payload, requestOptions)
.then(res => {
if (res.data && res.data.token) {
this.token = res.data.token;
Expand Down

0 comments on commit 14ba091

Please sign in to comment.