You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
404 B
21 lines
404 B
2 months ago
|
import { globalServer } from '../index'
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
export const uploadFirmwareFile = (params: File, abort: AbortController) =>
|
||
|
globalServer({
|
||
|
url: 'api/upload',
|
||
|
method: 'POST',
|
||
|
data: params,
|
||
|
signal: abort.signal,
|
||
|
headers: {
|
||
|
'Content-Type': 'multipart/form-data',
|
||
|
},
|
||
|
})
|
||
|
|
||
|
|
||
|
export const getFirmwarePath = () => globalServer<string>({
|
||
|
url: 'api/package-path',
|
||
|
method: 'GET',
|
||
|
})
|