fix: dont writeJSON twice
All checks were successful
Build and Push Server / build-and-push (push) Successful in 2m51s
All checks were successful
Build and Push Server / build-and-push (push) Successful in 2m51s
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user