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

Method post

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

Source from the content-addressed store, hash-verified

160 return this.service.get(url, { params, ..._object });
161 }
162 post<T>(url: string, params?: object, timeout?: number, headers?: object): Promise<ResultData<T>> {
163 let config = {
164 baseURL: import.meta.env.VITE_API_URL as string,
165 timeout: timeout ? timeout : (ResultEnum.TIMEOUT as number),
166 withCredentials: true,
167 headers: headers,
168 };
169 if (headers) {
170 config.headers = headers;
171 }
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,

Callers 15

postLocalNodeMethod · 0.80
downloadMethod · 0.80
uploadMethod · 0.80
createOllamaModelFunction · 0.80
recreateOllamaModelFunction · 0.80
deleteOllamaModelFunction · 0.80
searchOllamaModelFunction · 0.80
loadOllamaModelFunction · 0.80
syncOllamaModelFunction · 0.80
closeOllamaModelFunction · 0.80
bindDomainFunction · 0.80
getBindDomainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected