diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-11-27 13:36:44 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-11-27 13:36:44 -0600 |
| commit | 415c5e37fe5edbe47293f216dac7ec91726faabb (patch) | |
| tree | 4491ed36f2a59f9d6af3a11d8ef072bc8768f6d7 | |
| parent | 4a4314cb0fefc9bfbded5cfa3d628aab51cbadbf (diff) | |
| download | slskd-415c5e37fe5edbe47293f216dac7ec91726faabb.tar.gz | |
add function to get yaml location
| -rw-r--r-- | src/web/src/lib/options.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web/src/lib/options.js b/src/web/src/lib/options.js index e299996d..da198bd8 100644 --- a/src/web/src/lib/options.js +++ b/src/web/src/lib/options.js @@ -8,6 +8,10 @@ export const getYaml = async () => { return (await api.get('/options/yaml')).data; }; +export const getYamlLocation = async () => { + return (await api.get('/options/yaml/location')).data; +} + export const validateYaml = async ({ yaml }) => { return (await api.post('/options/yaml/validate', yaml)).data; }; |
