Add isolated artifact owner consent page

This commit is contained in:
Thomas Durieux committed 2026-09-27 14:56:06 +00:00
1 parent 7b60979c96
commit e4334bc9a7
10 files changed
+443 -3

No files matched your search

+4
View File
@@ -40,6 +40,9 @@ import { createLogger, serializeError } from "../core/logger";
import { createReviewCapabilities } from "./service/review-capabilities";
import { createReviewConsentPage, isReviewConsentPagePath } from "./review-consent-page";
const reviewConsentPage = createReviewConsentPage();
const logger = createLogger("server");
// Lazily build the templated index.html on first request so the server
@@ -77,6 +80,7 @@ function getIndexHtml(): string {
}
function indexResponse(req: express.Request, res: express.Response) {
if (isReviewConsentPagePath(req.path)) return reviewConsentPage(req, res);
if (
req.path.startsWith("/script") ||
req.path.startsWith("/css") ||