Healthchecks and fixes for QR API
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/push/deploy unknown status

This commit is contained in:
2026-02-07 14:45:02 -03:00
parent 771d0ccf27
commit ace33435fb
9 changed files with 164 additions and 19 deletions

View File

@@ -17,6 +17,12 @@ export async function POST(request: Request) {
}
return Response.json(data);
} catch (e) {
return Response.json({ error: String(e) }, { status: 502 });
return Response.json(
{
error: 'QR API unreachable',
detail: e instanceof Error ? e.message : String(e),
},
{ status: 502 },
);
}
}