MCPcopy Index your code
hub / github.com/devpew/Muffin-REST-API / createFund

Function createFund

main.go:182–188  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

180}
181
182func createFund(w http.ResponseWriter, r *http.Request) {
183 w.Header().Set("Access-Control-Allow-Origin", "*")
184 w.Header().Set("Content-Type", "application/json")
185 var fund Funds
186 json.NewDecoder(r.Body).Decode(&fund)
187 addNewFunds(fund)
188}
189
190func addNewFunds(data Funds) {
191

Callers

nothing calls this directly

Calls 1

addNewFundsFunction · 0.85

Tested by

no test coverage detected