forked from mtusi2026/mtusi2026lab7
Prepare verified laboratory 7 implementation and evidence
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export function validateOpenObservePath(path: string) {
|
||||
if (
|
||||
!/^\/api\/(?:organizations|default\/[A-Za-z0-9_/@.%-]+|default\/prometheus\/api\/v1\/[A-Za-z0-9_]+)(?:\?[A-Za-z0-9_=%&.,:+-]+)?$/.test(
|
||||
path,
|
||||
)
|
||||
)
|
||||
throw new Error("INVALID_OPENOBSERVE_REQUEST_PATH");
|
||||
}
|
||||
Reference in New Issue
Block a user