buildPath returns the appropriate path based on request type and channel type
(isGroupSpecific bool, groupName string, channelType string, validationEndpoint string)
| 134 | |
| 135 | // buildPath returns the appropriate path based on request type and channel type |
| 136 | func 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 | } |