List configuration.
(state, with_defaults=False, **kwargs)
| 88 | args=[('with_defaults', strtobool)], |
| 89 | ) |
| 90 | def conf(state, with_defaults=False, **kwargs): |
| 91 | """List configuration.""" |
| 92 | return jsonify(state.app.conf.table(with_defaults=with_defaults), |
| 93 | keyfilter=_wanted_config_key, |
| 94 | unknown_type_filter=safe_repr) |
| 95 | |
| 96 | |
| 97 | def _wanted_config_key(key): |