Drop extra JSON layer on Config API responses
No need to wrap in 'config' : {}
This commit is contained in:
1 parent
1091b6be83
commit
4ab3e0c31b
1 file changed
+1
-1
+1
-1
@@ -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' })
|
||||
|
||||
|
||||
Reference in new issue
Block a user