mirror of
https://github.com/livekit/livekit.git
synced 2026-08-29 07:39:09 +00:00
add helper to check for agent worker endpoint (#4503)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user