Created form to upload new firmware
This commit is contained in:
15
central_frontend/src/api/OTAApi.ts
Normal file
15
central_frontend/src/api/OTAApi.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { APIClient } from "./ApiClient";
|
||||
|
||||
export class OTAAPI {
|
||||
/**
|
||||
* Get the list of supported OTA platforms
|
||||
*/
|
||||
static async SupportedPlatforms(): Promise<Array<string>> {
|
||||
return (
|
||||
await APIClient.exec({
|
||||
method: "GET",
|
||||
uri: "/ota/supported_platforms",
|
||||
})
|
||||
).data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user