fix(camera): keep activated cameras offline until agent confirmation

This commit is contained in:
arnaud.dartois committed 2026-11-12 01:00:37 +01:00
1 parent 9fd9c75f94
commit 35ff573341
8 files changed
+76 -11

No files matched your search

@@ -171,7 +171,7 @@ public class CamerasController : ControllerBase
: StatusCode(result.StatusCode ?? 400, new { error = result.Error });
}
/// <summary>Toggle a camera between Online and Disabled.</summary>
/// <summary>Toggle a camera between enabled (initially Offline) and Disabled.</summary>
[Authorize(AuthenticationSchemes = "JwtBearer,Cookies", Policy = AppPermissions.CameraWrite)]
[HttpPost("{id:guid}/toggle-status")]
[ProducesResponseType(typeof(CameraResponse), StatusCodes.Status200OK)]