This commit is contained in:
stSolo
2022-12-22 17:56:47 +03:00
parent 8712561853
commit d4b1ab7133
672 changed files with 28509 additions and 4419 deletions

View File

@@ -5,11 +5,10 @@ import (
"net/http"
)
func (l Locations) GetUrl(ctx context.Context) (string, error) {
url := "/locations/getUrl"
prefix := "/cloudapi"
// GetURL gets the portal URL
func (l Locations) GetURL(ctx context.Context) (string, error) {
url := "/cloudapi/locations/getUrl"
url = prefix + url
res, err := l.client.DecortApiCall(ctx, http.MethodPost, url, nil)
if err != nil {
return "", err