Per-project admin key auth, drop ProjectID; MIT license; go 1.21

This commit is contained in:
rudder
2026-08-12 17:37:46 +03:00
parent 718eb09a78
commit 58eb477763
5 changed files with 35 additions and 15 deletions
+1 -2
View File
@@ -14,12 +14,11 @@ import (
type transport struct {
baseURL string
apiKey string
projectID string
httpClient *http.Client
}
func (t *transport) do(ctx context.Context, method, path string, query url.Values, body any, out any) error {
endpoint := strings.TrimSuffix(t.baseURL, "/") + "/game/v1/projects/" + t.projectID + path
endpoint := strings.TrimSuffix(t.baseURL, "/") + "/game/v1" + path
if len(query) > 0 {
endpoint += "?" + query.Encode()
}