fix: dont writeJSON twice
All checks were successful
Build and Push Server / build-and-push (push) Successful in 2m51s

This commit is contained in:
Max Richter
2025-10-31 20:08:33 +01:00
parent f14b685e43
commit 851babe1e0

View File

@@ -95,9 +95,11 @@ func (h *Handler) post(w http.ResponseWriter, r *http.Request, target string) {
return
}
writeJSON(w, http.StatusOK, data)
return
}
writeJSON(w, http.StatusOK, map[string]any{"success": true})
return
}
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {