From 2150d2dd4df17767533f4298c9a9368dba500c25 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 25 Sep 2022 13:57:40 -0500 Subject: add cancel function --- src/web/src/lib/shares.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 -- cgit v1.2.3