(w http.ResponseWriter, r *http.Request)
| 180 | } |
| 181 | |
| 182 | func 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 | |
| 190 | func addNewFunds(data Funds) { |
| 191 |
nothing calls this directly
no test coverage detected