feat(instance): add getInstanceInfo endpoint and refactor instance loading
- Add new getInstanceInfo API endpoint to fetch complete instance details - Refactor instance loading logic to use single API call instead of multiple - Update Instances.vue and InstanceDetail.vue to use new endpoint - Remove redundant status/config loading functions
This commit is contained in:
@@ -82,6 +82,8 @@ export const instanceApi = {
|
||||
api.post('/frpcAct/instanceMgr/stop', { instanceID }),
|
||||
restartInstance: (instanceID) =>
|
||||
api.post('/frpcAct/instanceMgr/restart', { instanceID }),
|
||||
getInstanceInfo: (instanceID) =>
|
||||
api.get(`/frpcAct/instanceMgr/getInfo?instanceID=${instanceID}`),
|
||||
getInstanceStatus: (instanceID) =>
|
||||
api.get(`/frpcAct/instanceMgr/status?instanceID=${instanceID}`),
|
||||
getInstanceLogs: (instanceID) =>
|
||||
|
||||
Reference in New Issue
Block a user