updated certs endpoint and delete certs/reate certs/delete endpoints
This commit is contained in:
1 parent
b42e9ac7da
commit
f05ebf2ae7
7 files changed
+71
-64
No files matched your search
@@ -14,10 +14,6 @@ import (
|
||||
)
|
||||
|
||||
func CreateCert(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Method == "GET" {
|
||||
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
|
||||
return
|
||||
}
|
||||
var requestData model.CreateCertRequest
|
||||
if err := json.NewDecoder(r.Body).Decode(&requestData); err != nil {
|
||||
http.Error(w, "invalid JSON format", http.StatusBadRequest)
|
||||
|
||||
Reference in new issue
Block a user