MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / listNodeOptions

Function listNodeOptions

frontend/src/api/modules/setting.ts:43–45  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

41 return http.get<Array<Setting.LicenseOptions>>(`/core/licenses/options`);
42};
43export const listNodeOptions = (type: string) => {
44 return http.post<Array<Setting.NodeItem>>(`/core/nodes/list`, { type: type });
45};
46export const updateNodeFavorite = (id: number, isFavorite: boolean) => {
47 return http.post(`/core/xpack/nodes/favorite`, { id, isFavorite });
48};

Callers 1

listNodesFunction · 0.90

Calls 1

postMethod · 0.80

Tested by

no test coverage detected