diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-05-26 19:08:35 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-05-26 19:08:35 -0500 |
| commit | c16695fc69577b95592079c59cce4afec4ea80aa (patch) | |
| tree | 5a297c6a8c898a6aed92d033a247b52b954e2840 /src | |
| parent | a5b3cd97d037a1a4d7bf62e68d6b94d3fd149175 (diff) | |
| download | slskd-c16695fc69577b95592079c59cce4afec4ea80aa.tar.gz | |
add rescan
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/lib/shares.js | 4 |
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 |
