(w http.ResponseWriter, err error)
| 293 | } |
| 294 | |
| 295 | func writeHostError(w http.ResponseWriter, err error) { |
| 296 | status := http.StatusInternalServerError |
| 297 | if errors.Is(err, inbounds.ErrHostNotFound) { |
| 298 | status = http.StatusNotFound |
| 299 | } |
| 300 | writeJSON(w, status, map[string]any{"error": err.Error()}) |
| 301 | } |
| 302 | |
| 303 | // handleInboundUsers manages user assignments for an inbound. |
| 304 | // GET → list user IDs assigned to this inbound |
no test coverage detected