implement test script in script edit

This commit is contained in:
sadnub
2021-07-09 08:03:53 -04:00
parent eace77e683
commit 00ec2085f7
5 changed files with 156 additions and 7 deletions

View File

@@ -8,3 +8,10 @@ export async function fetchScripts(params = {}) {
return data
} catch (e) { }
}
export async function testScript(payload) {
try {
const { data } = await axios.post(`${baseUrl}/testscript/`, payload)
return data
} catch (e) { }
}