def _config(path):
  path = path.split('/')
  key = path[0]

  plugin = next((p for p in list_plugins('tdp-config-safe-keys') if p.id == key), None)

  if plugin is None:
    _log.error('404: config key "{}" not found'.format(key))
    abort(404, 'config key "{}" not found'.format(key))

  path[0] = plugin.configKey
  return jsonify(get_config('.'.join(path)))