MCPcopy Create free account
hub / github.com/tbphp/gpt-load / buildPath

Function buildPath

internal/handler/integration_handler.go:136–148  ·  view source on GitHub ↗

buildPath returns the appropriate path based on request type and channel type

(isGroupSpecific bool, groupName string, channelType string, validationEndpoint string)

Source from the content-addressed store, hash-verified

134
135// buildPath returns the appropriate path based on request type and channel type
136func buildPath(isGroupSpecific bool, groupName string, channelType string, validationEndpoint string) string {
137 if channelType == "custom" {
138 if isGroupSpecific {
139 return validationEndpoint
140 }
141 return "/proxy/" + groupName + validationEndpoint
142 }
143
144 if isGroupSpecific {
145 return ""
146 }
147 return "/proxy/" + groupName
148}

Callers 1

GetIntegrationInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected