fix(0pt): allow X-Internal-Token on internal ER candidates
masterplan-lock / check (push) Successful in 4s

P0ST and the acquisition workers call /api/0pt/internal/er/candidates with the shared service token; the route already verifies it, but middleware rejected it before the handler. Adds the route to the existing explicit allowlist.
This commit is contained in:
2026-11-05 23:52:54 +01:00
parent c46ebbf810
commit 9321c5f068
+1
View File
@@ -31,6 +31,7 @@ const INTERNAL_SERVICE_ROUTES: RegExp[] = [
/^\/api\/0pt\/canonical\/facts$/,
/^\/api\/0pt\/internal\/evidence-outbox\/dispatch$/,
/^\/api\/0pt\/internal\/er\/candidates$/,
/^\/api\/0pt\/internal\/er\/candidates$/,
/^\/api\/0pt\/search\/definitions$/,
];