diff --git a/src/lib/api/cloud.spec.browser.ts b/src/lib/api/cloud.spec.browser.ts index f8ace677..300b01c5 100644 --- a/src/lib/api/cloud.spec.browser.ts +++ b/src/lib/api/cloud.spec.browser.ts @@ -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); diff --git a/src/lib/api/cloud.ts b/src/lib/api/cloud.ts index 83d07902..c4ee18a0 100644 --- a/src/lib/api/cloud.ts +++ b/src/lib/api/cloud.ts @@ -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;