From db3e73860b7d3d3527e4fdb9faf63e0d064698e4 Mon Sep 17 00:00:00 2001 From: Anthony GAEREMYNCK <1@anthony.sh> Date: Fri, 31 Jul 2026 16:14:38 +0200 Subject: [PATCH] feat(api): expose outputSizeBytes on job status Co-Authored-By: Claude Sonnet 5 --- src/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app.js b/src/app.js index 5e88837..9470222 100644 --- a/src/app.js +++ b/src/app.js @@ -83,6 +83,10 @@ export function createApp(config, prisma) { res.json({ targets: listTargetFormats(source) }); }); + app.get('/api/config', (req, res) => { + res.json({ maxFileSizeMb: config.maxFileSizeMb, retentionHours: config.retentionHours }); + }); + app.post('/api/jobs', jobsRateLimiter, upload.array('files', 10), async (req, res) => { if (!req.files || req.files.length === 0) { return res.status(400).json({ error: 'No files uploaded' }); @@ -206,6 +210,7 @@ export function createApp(config, prisma) { originalFilename: job.originalFilename, sourceFormat: job.sourceFormat, targetFormat: job.targetFormat, + outputSizeBytes: job.outputSizeBytes, errorMessage: job.errorMessage, }); });