mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-19 22:27:20 +02:00
Add isolated artifact owner consent page
This commit is contained in:
1 parent
7b60979c96
commit
e4334bc9a7
10 files changed
+443
-3
No files matched your search
@@ -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") ||
|
||||
|
||||
Reference in new issue
Block a user