MCPcopy Create free account
hub / github.com/TomClive/SeeDance2Stitcher / handleExportStatus

Function handleExportStatus

server.js:1123–1137  ·  view source on GitHub ↗
(req, res, url)

Source from the content-addressed store, hash-verified

1121}
1122
1123function handleExportStatus(req, res, url) {
1124 const id = url.searchParams.get("id");
1125 const job = exportJobs.get(id);
1126 if (!job) return json(res, 404, { error: "Export job not found" });
1127 json(res, 200, {
1128 id: job.id,
1129 status: job.status,
1130 percent: job.percent,
1131 message: job.message,
1132 url: job.status === "complete" ? job.url : null,
1133 path: job.status === "complete" ? job.output : null,
1134 error: job.error,
1135 detail: job.status === "error" ? job.stderr : ""
1136 });
1137}
1138
1139async function handleRequest(req, res) {
1140 const url = new URL(req.url, `http://${req.headers.host}`);

Callers 1

handleRequestFunction · 0.85

Calls 1

jsonFunction · 0.85

Tested by

no test coverage detected