mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-03-04 04:43:10 +00:00
added agent status page and added #332
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import axios from "axios"
|
||||
import { openURL } from "quasar";
|
||||
|
||||
const baseUrl = "/core"
|
||||
|
||||
@@ -17,4 +18,18 @@ export async function uploadMeshAgent(payload) {
|
||||
export async function fetchDashboardInfo(params = {}) {
|
||||
const { data } = await axios.get(`${baseUrl}/dashinfo/`, { params: params })
|
||||
return data
|
||||
}
|
||||
|
||||
export async function fetchURLActions(params = {}) {
|
||||
try {
|
||||
const { data } = await axios.get(`${baseUrl}/urlaction/`, { params: params })
|
||||
return data
|
||||
} catch (e) { console.error(e) }
|
||||
}
|
||||
|
||||
export async function runURLAction(payload) {
|
||||
try {
|
||||
const { data } = await axios.patch(`${baseUrl}/urlaction/run/`, payload)
|
||||
openURL(data)
|
||||
} catch (e) { console.error(e) }
|
||||
}
|
||||
Reference in New Issue
Block a user