This commit is contained in:
jarek committed 2026-01-03 09:10:38 +01:00
1 parent f2102003e3
commit 80c000c601
7 files changed
+170 -49

No files matched your search

+4
View File
@@ -73,6 +73,10 @@ const PUBLIC_PATHS = [
// Check if path is public
function isPublicPath(pathname: string): boolean {
// Webhook endpoints have their own auth (signature/secret verification)
if (pathname.match(/^\/api\/git\/stacks\/\d+\/webhook$/)) return true;
if (pathname.match(/^\/api\/git\/webhook\/\d+$/)) return true;
return PUBLIC_PATHS.some(path => pathname === path || pathname.startsWith(path + '/'));
}