mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01:00
[enh] add engine shortcut to config api
This commit is contained in:
parent
9f2faa62bf
commit
fbbb307f2e
@ -693,6 +693,7 @@ def config():
|
|||||||
return jsonify({'categories': categories.keys(),
|
return jsonify({'categories': categories.keys(),
|
||||||
'engines': [{'name': engine_name,
|
'engines': [{'name': engine_name,
|
||||||
'categories': engine.categories,
|
'categories': engine.categories,
|
||||||
|
'shortcut': engine.shortcut,
|
||||||
'enabled': not engine.disabled}
|
'enabled': not engine.disabled}
|
||||||
for engine_name, engine in engines.items()],
|
for engine_name, engine in engines.items()],
|
||||||
'plugins': [{'name': plugin.name,
|
'plugins': [{'name': plugin.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user