(w http.ResponseWriter, r *http.Request)
| 117 | } |
| 118 | |
| 119 | func (s *Server) handleVersion(w http.ResponseWriter, r *http.Request) { |
| 120 | if r.Method != http.MethodGet { |
| 121 | methodNotAllowed(w) |
| 122 | return |
| 123 | } |
| 124 | writeJSON(w, map[string]string{"version": s.services.App.Version(), "platform": s.services.App.Platform()}) |
| 125 | } |
| 126 | |
| 127 | func (s *Server) handleProviders(w http.ResponseWriter, r *http.Request) { |
| 128 | switch r.Method { |
nothing calls this directly
no test coverage detected