aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-05-26 19:08:35 -0500
committerJP Dillingham <jp@dillingham.me>2022-05-26 19:08:35 -0500
commitc16695fc69577b95592079c59cce4afec4ea80aa (patch)
tree5a297c6a8c898a6aed92d033a247b52b954e2840 /src
parenta5b3cd97d037a1a4d7bf62e68d6b94d3fd149175 (diff)
downloadslskd-c16695fc69577b95592079c59cce4afec4ea80aa.tar.gz
add rescan
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