From f9c680cc22faff6280c06a875b37ec8d2047879f Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Sat, 16 May 2026 00:30:25 -0400 Subject: [PATCH] fix(routes+ui): capture route bin optional, jobs Redis URL, recorders S3_REGION+stop codes, api.js full rewrite, upload.html multipart fix, capture.html bin guard: capture.js --- services/capture/src/routes/capture.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/capture/src/routes/capture.js b/services/capture/src/routes/capture.js index 4c34892..af11eaa 100644 --- a/services/capture/src/routes/capture.js +++ b/services/capture/src/routes/capture.js @@ -64,21 +64,21 @@ router.get('/status', (req, res) => { /** * POST /start * Start a new capture session - * Body: { project_id, bin_id, clip_name, device } + * Body: { project_id, clip_name, device, bin_id? } */ router.post('/start', async (req, res) => { try { const { project_id, bin_id, clip_name, device } = req.body; - if (!project_id || !bin_id || !clip_name || device === undefined) { + if (!project_id || !clip_name || device === undefined) { return res.status(400).json({ - error: 'Missing required fields: project_id, bin_id, clip_name, device', + error: 'Missing required fields: project_id, clip_name, device', }); } const session = await captureManager.start({ projectId: project_id, - binId: bin_id, + binId: bin_id || null, clipName: clip_name, device, });