diff options
Diffstat (limited to 'web/js/api.js')
| -rw-r--r-- | web/js/api.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/js/api.js b/web/js/api.js index 8e80a0d..518a58b 100644 --- a/web/js/api.js +++ b/web/js/api.js @@ -55,6 +55,8 @@ export const API = { saveNote: (id, content) => api(`/api/media/${id}/notes`, { method: 'POST', body: { content } }), deleteNote: (id) => api(`/api/media/${id}/notes`, { method: 'DELETE' }), share: (id) => api(`/api/media/${id}/shares`, { method: 'POST' }), + myShares: () => api('/api/shares'), + revokeShare: (token) => api(`/api/shares/${token}`, { method: 'DELETE' }), tags: () => api('/api/tags'), download: (id) => api(`/api/media/${id}/download`), regenThumbnail: (id) => api(`/api/media/${id}/thumbnail`, { method: 'POST' }), |
