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 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