mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-11 09:27:30 +00:00
Fixed reporting mechanism
This commit is contained in:
@@ -99,6 +99,8 @@ export const dashboardAPI = {
|
||||
},
|
||||
getRecentUsers: () => api.get("/dashboard/recent-users"),
|
||||
getRecentCollection: () => api.get("/dashboard/recent-collection"),
|
||||
triggerSystemStatistics: () =>
|
||||
api.post("/automation/trigger/system-statistics"),
|
||||
};
|
||||
|
||||
// Admin Hosts API (for management interface)
|
||||
@@ -129,6 +131,11 @@ export const adminHostsAPI = {
|
||||
api.patch(`/hosts/${hostId}/notes`, {
|
||||
notes: notes,
|
||||
}),
|
||||
getIntegrations: (hostId) => api.get(`/hosts/${hostId}/integrations`),
|
||||
toggleIntegration: (hostId, integrationName, enabled) =>
|
||||
api.post(`/hosts/${hostId}/integrations/${integrationName}/toggle`, {
|
||||
enabled,
|
||||
}),
|
||||
};
|
||||
|
||||
// Host Groups API
|
||||
|
||||
Reference in New Issue
Block a user