(w http.ResponseWriter, _ *http.Request)
| 46 | } |
| 47 | |
| 48 | func (admin *FrankenPHPAdmin) threads(w http.ResponseWriter, _ *http.Request) error { |
| 49 | debugState := frankenphp.DebugState() |
| 50 | prettyJson, err := json.MarshalIndent(debugState, "", " ") |
| 51 | if err != nil { |
| 52 | return admin.error(http.StatusInternalServerError, err) |
| 53 | } |
| 54 | |
| 55 | return admin.success(w, string(prettyJson)) |
| 56 | } |
| 57 | |
| 58 | func (admin *FrankenPHPAdmin) success(w http.ResponseWriter, message string) error { |
| 59 | w.WriteHeader(http.StatusOK) |
nothing calls this directly
no test coverage detected