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

Function uploadCommands

frontend/src/api/modules/command.ts:11–13  ·  view source on GitHub ↗
(params: FormData)

Source from the content-addressed store, hash-verified

9 return http.post<string>(`/core/commands/export`);
10};
11export const uploadCommands = (params: FormData) => {
12 return http.upload<Array<Command.CommandInfo>>(`/core/commands/upload`, params);
13};
14export const importCommands = (list: Array<Command.CommandOperate>) => {
15 return http.post(`/core/commands/import`, { items: list });
16};

Callers

nothing calls this directly

Calls 1

uploadMethod · 0.80

Tested by

no test coverage detected