feat(control): Race Controller Master, one browser runs the race and others follow or take over (1.77.0)

This commit is contained in:
larssand committed 2026-11-07 17:36:15 +01:00
1 parent 54989d8597
commit cf3a4c5fdb
16 files changed
+316 -9

No files matched your search

+2
View File
@@ -139,6 +139,8 @@ function createAuth({ dataDir, allowedCidrs = "", now = () => Date.now() }) {
function isProtectedRoute(req) {
const route = String(req.path || "");
if (!route.startsWith("/api/") || route === "/api/auth/login" || route === "/api/auth/status") return false;
// The Race Controller Master lock checks the PIN itself (only for claiming, not renewing).
if (route.startsWith("/api/controller/")) return false;
if (!["GET", "HEAD", "OPTIONS"].includes(req.method)) return true;
return route === "/api/ammc/config";
}