aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web/src/lib/shares.js4
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