Commit 2407f5ab authored by janis.streib's avatar janis.streib 🦉
Browse files

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

parent 99cdd223
Pipeline #106648 passed with stages
in 8 minutes and 17 seconds
......@@ -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'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment