Can get a single device enrollment status
This commit is contained in:
@ -156,7 +156,10 @@ pub async fn secure_server(energy_actor: EnergyActorAddr) -> anyhow::Result<()>
|
||||
"/devices_api/mgmt/enroll",
|
||||
web::post().to(mgmt_controller::enroll),
|
||||
)
|
||||
// TODO : check device status
|
||||
.route(
|
||||
"/devices_api/mgmt/enrollment_status",
|
||||
web::get().to(mgmt_controller::enrollment_status),
|
||||
)
|
||||
})
|
||||
.bind_openssl(&AppConfig::get().listen_address, builder)?
|
||||
.run()
|
||||
|
Reference in New Issue
Block a user