()
| 163 | } |
| 164 | |
| 165 | func (s *apiServer) SlotsNoXAuth() (int, string) { |
| 166 | if slots, err := s.topom.Slots(); err != nil { |
| 167 | return rpc.ApiResponseError(err) |
| 168 | } else { |
| 169 | return rpc.ApiResponseJson(slots) |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | func (s *apiServer) XPing(params martini.Params) (int, string) { |
| 174 | if err := s.verifyXAuth(params); err != nil { |