Skip to content
Snippets Groups Projects
Commit 2407f5ab authored by Janis Streib's avatar Janis Streib :owl:
Browse files

UPD: removed context processor and communicate js_mods in the correct function

parent 99cdd223
No related branches found
No related tags found
No related merge requests found
Pipeline #273676 passed with warnings
......@@ -69,7 +69,7 @@ def main():
@app.route('/api/system/info')
def api_sysinfo():
return jsonify({'version': VERSION, 'mods': MODS, 'host_oper_mode': db.host_omdl})
return jsonify({'version': VERSION, 'mods': MODS, 'host_oper_mode': db.host_omdl, 'js_mods': app.config.get('JS_MODULES')})
@app.route('/api/session')
......@@ -110,6 +110,3 @@ def handle_generic(e):
return jsonify({'type': 'generic_error', 'error': str(e)}), 500
@app.context_processor
def inject_mods():
return dict(mods=MODS, local_mods=app.config.get('JS_MODULES'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment