updated certs endpoint and delete certs/reate certs/delete endpoints

This commit is contained in:
wt committed 2025-07-25 18:48:12 +07:00
1 parent b42e9ac7da
commit f05ebf2ae7
7 files changed
+71 -64

No files matched your search

-4
View File
@@ -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)