From 415c5e37fe5edbe47293f216dac7ec91726faabb Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 27 Nov 2021 13:36:44 -0600 Subject: add function to get yaml location --- src/web/src/lib/options.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; }; -- cgit v1.2.3