(params martini.Params)
| 264 | } |
| 265 | |
| 266 | func (s *apiServer) ReinitProxy(params martini.Params) (int, string) { |
| 267 | if err := s.verifyXAuth(params); err != nil { |
| 268 | return rpc.ApiResponseError(err) |
| 269 | } |
| 270 | token, err := s.parseToken(params) |
| 271 | if err != nil { |
| 272 | return rpc.ApiResponseError(err) |
| 273 | } |
| 274 | if err := s.topom.ReinitProxy(token); err != nil { |
| 275 | return rpc.ApiResponseError(err) |
| 276 | } else { |
| 277 | return rpc.ApiResponseJson("OK") |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | func (s *apiServer) RemoveProxy(params martini.Params) (int, string) { |
| 282 | if err := s.verifyXAuth(params); err != nil { |
nothing calls this directly
no test coverage detected