rework patch reset policy modal to comp api and take into account permissions

This commit is contained in:
sadnub
2021-10-22 12:02:15 -04:00
parent b36961db7a
commit 99566d7dcc
2 changed files with 130 additions and 105 deletions

8
src/api/automation.js Normal file
View File

@@ -0,0 +1,8 @@
import axios from "axios"
const baseUrl = "/automation"
export async function sendPatchPolicyReset(payload) {
const { data } = await axios.post(`${baseUrl}/patchpolicy/reset/`, payload)
return data
}