diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-09-25 13:57:40 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-09-25 13:57:40 -0500 |
| commit | 2150d2dd4df17767533f4298c9a9368dba500c25 (patch) | |
| tree | b4dd03ce2ffd056a1f8fa3e069d40b24a80cefe6 /src/web | |
| parent | 052524a14612d08823b31696d0c35b66bcc066b5 (diff) | |
| download | slskd-2150d2dd4df17767533f4298c9a9368dba500c25.tar.gz | |
add cancel function
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/src/lib/shares.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web/src/lib/shares.js b/src/web/src/lib/shares.js index 03fac7d6..c400e08e 100644 --- a/src/web/src/lib/shares.js +++ b/src/web/src/lib/shares.js @@ -20,4 +20,8 @@ export const browse = async ({ id } = {}) => { export const rescan = async () => { return (await api.put('/shares')).data; +}; + +export const cancel = async () => { + return (await api.delete('/shares')).data; };
\ No newline at end of file |
