(params martini.Params)
| 554 | } |
| 555 | |
| 556 | func (s *apiServer) SyncCreateAction(params martini.Params) (int, string) { |
| 557 | if err := s.verifyXAuth(params); err != nil { |
| 558 | return rpc.ApiResponseError(err) |
| 559 | } |
| 560 | addr, err := s.parseAddr(params) |
| 561 | if err != nil { |
| 562 | return rpc.ApiResponseError(err) |
| 563 | } |
| 564 | if err := s.topom.SyncCreateAction(addr); err != nil { |
| 565 | return rpc.ApiResponseError(err) |
| 566 | } else { |
| 567 | return rpc.ApiResponseJson("OK") |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | func (s *apiServer) SyncRemoveAction(params martini.Params) (int, string) { |
| 572 | if err := s.verifyXAuth(params); err != nil { |
nothing calls this directly
no test coverage detected