Function
uploadLicense
(oldLicense: string, params: FormData)
Source from the content-addressed store, hash-verified
| 8 | |
| 9 | // license |
| 10 | export 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 | }; |
| 16 | export const searchLicense = (params: ReqPage) => { |
| 17 | return http.post<ResPage<Setting.License>>('/core/licenses/search', params); |
| 18 | }; |
Callers
nothing calls this directly
Tested by
no test coverage detected