(params martini.Params)
| 328 | } |
| 329 | |
| 330 | func (s *apiServer) ResyncGroup(params martini.Params) (int, string) { |
| 331 | if err := s.verifyXAuth(params); err != nil { |
| 332 | return rpc.ApiResponseError(err) |
| 333 | } |
| 334 | gid, err := s.parseInteger(params, "gid") |
| 335 | if err != nil { |
| 336 | return rpc.ApiResponseError(err) |
| 337 | } |
| 338 | if err := s.topom.ResyncGroup(gid); err != nil { |
| 339 | return rpc.ApiResponseError(err) |
| 340 | } else { |
| 341 | return rpc.ApiResponseJson("OK") |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | func (s *apiServer) ResyncGroupAll(params martini.Params) (int, string) { |
| 346 | if err := s.verifyXAuth(params); err != nil { |
nothing calls this directly
no test coverage detected