fix: return json from write post
All checks were successful
Build and Push Server / build-and-push (push) Successful in 2m53s
All checks were successful
Build and Push Server / build-and-push (push) Successful in 2m53s
This commit is contained in:
@@ -87,7 +87,7 @@ func (h *Handler) post(w http.ResponseWriter, r *http.Request, target string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
w.WriteHeader(http.StatusOK)
|
writeJSON(w, http.StatusOK, make(map[string]any))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|||||||
Reference in New Issue
Block a user