MCPcopy Create free account
hub / github.com/evilsocket/pwngrid / PeerGetData

Method PeerGetData

api/peer_data.go:11–13  ·  view source on GitHub ↗

GET /api/v1/data

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

JSONFunction · 0.85
DataMethod · 0.45

Tested by

no test coverage detected