Add a route to get the list of supported platforms for OTA
This commit is contained in:
7
central_backend/src/server/web_api/ota_controller.rs
Normal file
7
central_backend/src/server/web_api/ota_controller.rs
Normal file
@ -0,0 +1,7 @@
|
||||
use crate::ota::ota_update::OTAPlatform;
|
||||
use crate::server::custom_error::HttpResult;
|
||||
use actix_web::HttpResponse;
|
||||
|
||||
pub async fn supported_platforms() -> HttpResult {
|
||||
Ok(HttpResponse::Ok().json(vec![OTAPlatform::Wt32Eth01]))
|
||||
}
|
Reference in New Issue
Block a user