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

Function uploadLicense

frontend/src/api/modules/setting.ts:10–15  ·  view source on GitHub ↗
(oldLicense: string, params: FormData)

Source from the content-addressed store, hash-verified

8
9// license
10export const uploadLicense = (oldLicense: string, params: FormData) => {
11 if (oldLicense === '') {
12 return http.upload('/core/licenses/upload', params);
13 }
14 return http.upload('/core/licenses/update', params);
15};
16export const searchLicense = (params: ReqPage) => {
17 return http.post<ResPage<Setting.License>>('/core/licenses/search', params);
18};

Callers

nothing calls this directly

Calls 1

uploadMethod · 0.80

Tested by

no test coverage detected