(params martini.Params)
| 584 | } |
| 585 | |
| 586 | func (s *apiServer) SlotCreateAction(params martini.Params) (int, string) { |
| 587 | if err := s.verifyXAuth(params); err != nil { |
| 588 | return rpc.ApiResponseError(err) |
| 589 | } |
| 590 | sid, err := s.parseInteger(params, "sid") |
| 591 | if err != nil { |
| 592 | return rpc.ApiResponseError(err) |
| 593 | } |
| 594 | gid, err := s.parseInteger(params, "gid") |
| 595 | if err != nil { |
| 596 | return rpc.ApiResponseError(err) |
| 597 | } |
| 598 | if err := s.topom.SlotCreateAction(sid, gid); err != nil { |
| 599 | return rpc.ApiResponseError(err) |
| 600 | } else { |
| 601 | return rpc.ApiResponseJson("OK") |
| 602 | } |
| 603 | } |
| 604 | |
| 605 | func (s *apiServer) SlotCreateActionSome(params martini.Params) (int, string) { |
| 606 | if err := s.verifyXAuth(params); err != nil { |
nothing calls this directly
no test coverage detected