package handlers import ( "github.com/andyleap/hnh-map/internal/app/response" "net/http" ) // JSON writes v as JSON with the given status code. func JSON(rw http.ResponseWriter, status int, v any) { response.JSON(rw, status, v) } // JSONError writes an error response in standard format. func JSONError(rw http.ResponseWriter, status int, msg, code string) { response.JSONError(rw, status, msg, code) }