(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte)
| 264 | } |
| 265 | |
| 266 | func (c *ProxyController) deleteFrontend(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte) (interface{}, error) { |
| 267 | log.Infof("Delete Frontend(id=%s)", params["id"]) |
| 268 | if err := c.ng.DeleteFrontend(engine.FrontendKey{Id: params["id"]}); err != nil { |
| 269 | return nil, err |
| 270 | } |
| 271 | return Response{"message": "Frontend deleted"}, nil |
| 272 | } |
| 273 | |
| 274 | func (c *ProxyController) upsertServer(w http.ResponseWriter, r *http.Request, params map[string]string, body []byte) (interface{}, error) { |
| 275 | backendId := params["backendId"] |
nothing calls this directly
no test coverage detected