[mod] add /engine_descriptions.json endpoint

returns engine descriptions (JSON):
* key: engine name
* value: description in the user locale, use English description as a fallback
This commit is contained in:
Alexandre Flament 2021-09-18 10:59:56 +02:00
parent f8d5fe0f11
commit bfd24d1226
3 changed files with 3802 additions and 0 deletions

View file

@ -14,6 +14,7 @@ __all__ = [
'WIKIDATA_UNITS',
'EXTERNAL_BANGS',
'OSM_KEYS_TAGS',
'ENGINE_DESCRIPTIONS',
'ahmia_blacklist_loader',
]
@ -45,3 +46,4 @@ EXTERNAL_URLS = _load('external_urls.json')
WIKIDATA_UNITS = _load('wikidata_units.json')
EXTERNAL_BANGS = _load('external_bangs.json')
OSM_KEYS_TAGS = _load('osm_keys_tags.json')
ENGINE_DESCRIPTIONS = _load('engine_descriptions.json')