aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-11-27 13:36:44 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-11-27 13:36:44 -0600
commit415c5e37fe5edbe47293f216dac7ec91726faabb (patch)
tree4491ed36f2a59f9d6af3a11d8ef072bc8768f6d7 /src
parent4a4314cb0fefc9bfbded5cfa3d628aab51cbadbf (diff)
downloadslskd-415c5e37fe5edbe47293f216dac7ec91726faabb.tar.gz
add function to get yaml location
Diffstat (limited to 'src')
-rw-r--r--src/web/src/lib/options.js4
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;
};