@app.route('<STR_LIT>', methods=['<STR_LIT:GET>'])<EOL>def running_apps(device_id):
if not is_valid_device_id(device_id):<EOL><INDENT>abort(<NUM_LIT>)<EOL><DEDENT>if device_id not in devices:<EOL><INDENT>abort(<NUM_LIT>)<EOL><DEDENT>return jsonify(running_apps=devices[device_id].running_apps)<EOL>
Get running apps via HTTP GET.