This commit is contained in:
2023-11-07 15:54:13 +03:00
parent 84c0248019
commit e6440bc4a3
11 changed files with 651 additions and 20 deletions

View File

@@ -94,7 +94,7 @@ func (ldc *LegacyDecortClient) DecortApiCall(ctx context.Context, method, url st
body = bytes.NewBufferString(values.Encode() + fmt.Sprintf("&authkey=%s", ldc.cfg.Token))
}
req, err := http.NewRequestWithContext(ctx, method, ldc.decortURL+"/restmachine"+url, body)
req, err := http.NewRequestWithContext(ctx, method, ldc.decortURL+restmachine+url, body)
if err != nil {
return nil, err
}