(params martini.Params)
| 279 | } |
| 280 | |
| 281 | func (s *apiServer) RemoveProxy(params martini.Params) (int, string) { |
| 282 | if err := s.verifyXAuth(params); err != nil { |
| 283 | return rpc.ApiResponseError(err) |
| 284 | } |
| 285 | token, err := s.parseToken(params) |
| 286 | if err != nil { |
| 287 | return rpc.ApiResponseError(err) |
| 288 | } |
| 289 | force, err := s.parseInteger(params, "force") |
| 290 | if err != nil { |
| 291 | return rpc.ApiResponseError(err) |
| 292 | } |
| 293 | if err := s.topom.RemoveProxy(token, force != 0); err != nil { |
| 294 | return rpc.ApiResponseError(err) |
| 295 | } else { |
| 296 | return rpc.ApiResponseJson("OK") |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | func (s *apiServer) CreateGroup(params martini.Params) (int, string) { |
| 301 | if err := s.verifyXAuth(params); err != nil { |
nothing calls this directly
no test coverage detected