mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-02-19 19:01:23 +00:00
fix automation components and rework some views and urls
This commit is contained in:
@@ -5,4 +5,11 @@ const baseUrl = "/automation"
|
||||
export async function sendPatchPolicyReset(payload) {
|
||||
const { data } = await axios.post(`${baseUrl}/patchpolicy/reset/`, payload)
|
||||
return data
|
||||
}
|
||||
|
||||
export async function fetchPolicyChecks(id) {
|
||||
try {
|
||||
const { data } = await axios.get(`${baseUrl}/policies/${id}/checks/`)
|
||||
return data
|
||||
} catch (e) { console.error(e) }
|
||||
}
|
||||
Reference in New Issue
Block a user