Validate devices

This commit is contained in:
2024-07-03 21:32:32 +02:00
parent 2502ed6bcf
commit e97ef6fe45
6 changed files with 93 additions and 3 deletions

View File

@ -49,6 +49,15 @@ export class DeviceApi {
})
).data;
}
/**
* Validate a device
*/
static async Validate(d: Device): Promise<void> {
await APIClient.exec({
uri: `/device/${encodeURIComponent(d.id)}/validate`,
method: "POST",
});
}
/**
* Delete a device