Drop extra JSON layer on Config API responses

No need to wrap in 'config' : {}
This commit is contained in:
andrew committed 2023-10-20 18:28:23 -04:00
1 parent 1091b6be83
commit 4ab3e0c31b
1 file changed
+1 -1
+1 -1
View File
@@ -786,7 +786,7 @@ def api_configs(request, engine=None):
return api_response({ 'engines' : engines, 'books' : books })
if engine in OPENBENCH_CONFIG['engines'].keys():
return api_response({ 'config' : OPENBENCH_CONFIG['engines'][engine] })
return api_response(OPENBENCH_CONFIG['engines'][engine])
return api_response({ 'error' : 'Engine not found. Check /api/config/ for a full list' })