Parses a JSON request body into a custom structure.
(into interface{})
| 1326 | |
| 1327 | // Parses a JSON request body into a custom structure. |
| 1328 | func (h *handler) readJSONInto(into interface{}) error { |
| 1329 | return ReadJSONFromMIME(h.rq.Header, h.requestBody, into) |
| 1330 | } |
| 1331 | |
| 1332 | // readSanitizeJSONInto reads and sanitizes a JSON request body and returns DatabaseConfig. |
| 1333 | // Expands environment variables (if any) referenced in the config. |
no test coverage detected