mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 15:22:30 +00:00
add helper to check for agent worker endpoint (#4503)
This commit is contained in:
1 parent
253f977d32
commit
bacc21e6c0
1 file changed
+4
@@ -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