mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01:00
[mod] /config API : add language_support, paging, safesearch, supported_languages, time_range_support, timeout fields.
This commit is contained in:
parent
f6f0c1854c
commit
06bea82935
@ -752,7 +752,16 @@ def config():
|
|||||||
'engines': [{'name': engine_name,
|
'engines': [{'name': engine_name,
|
||||||
'categories': engine.categories,
|
'categories': engine.categories,
|
||||||
'shortcut': engine.shortcut,
|
'shortcut': engine.shortcut,
|
||||||
'enabled': not engine.disabled}
|
'enabled': not engine.disabled,
|
||||||
|
'paging': engine.paging,
|
||||||
|
'language_support': engine.language_support,
|
||||||
|
'supported_languages':
|
||||||
|
engine.supported_languages.keys()
|
||||||
|
if isinstance(engine.supported_languages, dict)
|
||||||
|
else engine.supported_languages,
|
||||||
|
'safesearch': engine.safesearch,
|
||||||
|
'time_range_support': engine.time_range_support,
|
||||||
|
'timeout': engine.timeout}
|
||||||
for engine_name, engine in engines.items()],
|
for engine_name, engine in engines.items()],
|
||||||
'plugins': [{'name': plugin.name,
|
'plugins': [{'name': plugin.name,
|
||||||
'enabled': plugin.default_on}
|
'enabled': plugin.default_on}
|
||||||
|
Loading…
Reference in New Issue
Block a user