Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanbekov committed Jan 11, 2024
1 parent 4498f9b commit 656ff1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudconnexa/ip_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (c *Client) UpdateIPService(id string, service *IPService) (*IPService, err
return nil, err
}

endpoint := fmt.Sprintf("%s/api/beta/ip-services/%s?%s", c.BaseURL, id)
endpoint := fmt.Sprintf("%s/api/beta/ip-services/%s", c.BaseURL, id)

req, err := http.NewRequest(http.MethodPut, endpoint, bytes.NewBuffer(serviceJson))
if err != nil {
Expand All @@ -160,7 +160,7 @@ func (c *Client) UpdateIPService(id string, service *IPService) (*IPService, err
}

func (c *Client) DeleteIPService(ipServiceId string) error {
endpoint := fmt.Sprintf("%s/api/beta/ip-services/%s?%s", c.BaseURL, ipServiceId)
endpoint := fmt.Sprintf("%s/api/beta/ip-services/%s", c.BaseURL, ipServiceId)
req, err := http.NewRequest(http.MethodDelete, endpoint, nil)
if err != nil {
return err
Expand Down

0 comments on commit 656ff1e

Please sign in to comment.