MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / postLocalNode

Method postLocalNode

frontend/src/api/index.ts:174–183  ·  view source on GitHub ↗
(url: string, params?: object, timeout?: number)

Source from the content-addressed store, hash-verified

172 return this.service.post(url, params, config);
173 }
174 postLocalNode<T>(url: string, params?: object, timeout?: number): Promise<ResultData<T>> {
175 return this.service.post(url, params, {
176 baseURL: import.meta.env.VITE_API_URL as string,
177 timeout: timeout ? timeout : (ResultEnum.TIMEOUT as number),
178 withCredentials: true,
179 headers: {
180 CurrentNode: 'local',
181 },
182 });
183 }
184 put<T>(url: string, params?: object, _object = {}): Promise<ResultData<T>> {
185 return this.service.put(url, params, _object);
186 }

Callers 12

searchHostsFunction · 0.80
getHostByIDFunction · 0.80
getHostTreeFunction · 0.80
addHostFunction · 0.80
testByInfoFunction · 0.80
testByIDFunction · 0.80
editHostFunction · 0.80
editHostGroupFunction · 0.80
deleteHostFunction · 0.80
checkBackupFunction · 0.80
listBucketFunction · 0.80
listLocalNodeSSLFunction · 0.80

Calls 1

postMethod · 0.80

Tested by

no test coverage detected