From 7204673f5d0cbcce7c70bedfe3d740040b3aa93e Mon Sep 17 00:00:00 2001 From: Micah Martin Date: Sun, 30 Jan 2022 17:23:41 -0500 Subject: [PATCH] fixed ng endpoint configuration --- session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.go b/session.go index bcd679b7..add79a38 100644 --- a/session.go +++ b/session.go @@ -56,7 +56,7 @@ func NewSession(opt *SessionOptions) *Session { Logger: opt.Logger, }), NGClient: nextgen.NewAPIClient(&nextgen.Configuration{ - BasePath: fmt.Sprintf("%s%s", opt.Endpoint, utils.DefaultNGApiUrl), + BasePath: opt.Endpoint, DefaultHeader: map[string]string{ helpers.HTTPHeaders.ApiKey.String(): helpers.EnvVars.NGApiKey.Get(), },