From c16695fc69577b95592079c59cce4afec4ea80aa Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 26 May 2022 19:08:35 -0500 Subject: add rescan --- src/web/src/lib/shares.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/web') diff --git a/src/web/src/lib/shares.js b/src/web/src/lib/shares.js index 34fab679..f1d0373c 100644 --- a/src/web/src/lib/shares.js +++ b/src/web/src/lib/shares.js @@ -16,4 +16,8 @@ export const browseAll = async () => { export const browse = async ({ id } = {}) => { if (!id) throw new Error('unable to get share contents: id is missing'); return (await api.get(`/shares/${id}/contents`)).data; +}; + +export const rescan = async () => { + return (await api.put('/shares')).data; }; \ No newline at end of file -- cgit v1.2.3