GET /api/v1/data
(w http.ResponseWriter, r *http.Request)
| 9 | |
| 10 | // GET /api/v1/data |
| 11 | func (api *API) PeerGetData(w http.ResponseWriter, r *http.Request) { |
| 12 | JSON(w, http.StatusOK, api.Client.Data()) |
| 13 | } |
| 14 | |
| 15 | // POST /api/v1/data |
| 16 | func (api *API) PeerSetData(w http.ResponseWriter, r *http.Request) { |