refactor: clean code
This commit is contained in:
11
internal/pkg/sdk3rd/cachefly/api.go
Normal file
11
internal/pkg/sdk3rd/cachefly/api.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package cacheflysdk
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func (c *Client) CreateCertificate(req *CreateCertificateRequest) (*CreateCertificateResponse, error) {
|
||||
resp := &CreateCertificateResponse{}
|
||||
err := c.sendRequestWithResult(http.MethodPost, "/certificates", req, resp)
|
||||
return resp, err
|
||||
}
|
||||
Reference in New Issue
Block a user