1.0.5
This commit is contained in:
1 parent
f2102003e3
commit
80c000c601
7 files changed
+170
-49
No files matched your search
@@ -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 + '/'));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user