(params martini.Params)
| 313 | } |
| 314 | |
| 315 | func (s *apiServer) RemoveGroup(params martini.Params) (int, string) { |
| 316 | if err := s.verifyXAuth(params); err != nil { |
| 317 | return rpc.ApiResponseError(err) |
| 318 | } |
| 319 | gid, err := s.parseInteger(params, "gid") |
| 320 | if err != nil { |
| 321 | return rpc.ApiResponseError(err) |
| 322 | } |
| 323 | if err := s.topom.RemoveGroup(gid); err != nil { |
| 324 | return rpc.ApiResponseError(err) |
| 325 | } else { |
| 326 | return rpc.ApiResponseJson("OK") |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | func (s *apiServer) ResyncGroup(params martini.Params) (int, string) { |
| 331 | if err := s.verifyXAuth(params); err != nil { |
nothing calls this directly
no test coverage detected