(w http.ResponseWriter, r *http.Request)
| 152 | } |
| 153 | |
| 154 | func (api *API) status(w http.ResponseWriter, r *http.Request) { |
| 155 | res := map[string]any{} |
| 156 | res["flags"] = api.Flags |
| 157 | res["start_time"] = api.StartTime |
| 158 | res["build_information"] = api.BuildInfo |
| 159 | |
| 160 | api.respond(w, res) |
| 161 | } |
| 162 | |
| 163 | type response struct { |
| 164 | Status status `json:"status"` |