(params martini.Params)
| 195 | } |
| 196 | |
| 197 | func (s *apiServer) Shutdown(params martini.Params) (int, string) { |
| 198 | if err := s.verifyXAuth(params); err != nil { |
| 199 | return rpc.ApiResponseError(err) |
| 200 | } |
| 201 | if err := s.proxy.Close(); err != nil { |
| 202 | return rpc.ApiResponseError(err) |
| 203 | } else { |
| 204 | return rpc.ApiResponseJson("OK") |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | func (s *apiServer) FillSlots(slots []*models.Slot, params martini.Params) (int, string) { |
| 209 | if err := s.verifyXAuth(params); err != nil { |