Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(SharedMetadataAPI): pass JSON container to /share endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kwgithubusername committed Apr 4, 2017
1 parent 4ec9f47 commit ef36ea7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sharedMetadataAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ S.deleteTrusted = (token, mdid) => S.request('DELETE', 'trusted/' + mdid, null,
S.getTrustedList = (token) => S.request('GET', 'trusted', null, token);

// invitation process
S.createInvitation = (token) => S.request('POST', 'share', null, token);

This comment has been minimized.

Copy link
@chriso1977

chriso1977 Sep 22, 2017

Delete

S.readInvitation = (token, uuid) => S.request('GET', 'share/' + uuid, null, token);
S.acceptInvitation = (token, uuid) => S.request('POST', 'share/' + uuid, null, token);
S.deleteInvitation = (token, uuid) => S.request('DELETE', 'share/' + uuid, null, token);
S.createInvitation = (token) => S.request('POST', 'share', '{}', token);
S.readInvitation = (token, uuid) => S.request('GET', 'share/' + uuid, '{}', token);
S.acceptInvitation = (token, uuid) => S.request('POST', 'share/' + uuid, '{}', token);
S.deleteInvitation = (token, uuid) => S.request('DELETE', 'share/' + uuid, '{}', token);

module.exports = S;

0 comments on commit ef36ea7

Please sign in to comment.