JS FUNCTIONS: GET config: user functions.
()
| 19 | |
| 20 | // GET config: user functions. |
| 21 | func (h *handler) handleGetDbConfigFunctions() error { |
| 22 | if config, etagVersion, err := h.getDBConfig(); err != nil { |
| 23 | return err |
| 24 | } else if config.UserFunctions == nil { |
| 25 | return base.HTTPErrorf(http.StatusNotFound, "") |
| 26 | } else { |
| 27 | h.writeJSON(config.UserFunctions) |
| 28 | h.setEtag(etagVersion) |
| 29 | return nil |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | // GET config: a single user function |
| 34 | func (h *handler) handleGetDbConfigFunction() error { |
nothing calls this directly
no test coverage detected