add helper to check for agent worker endpoint (#4503)

This commit is contained in:
Paul Wells
2026-05-05 13:38:53 -07:00
committed by GitHub
parent 253f977d32
commit bacc21e6c0
+4
View File
@@ -408,6 +408,10 @@ func IsRTCValidatePath(path string) bool {
return path == "/rtc/validate" || path == "/rtc/v1/validate"
}
func IsAgentWorkerPath(path string) bool {
return path == "/agent"
}
func IsAgentPath(path string) bool {
return strings.HasPrefix(path, "/agent")
}