Commit df384acc authored by Luca Lamorte's avatar Luca Lamorte

Removed unused code

parent 4256d873
......@@ -96,6 +96,7 @@ def test_disconnect():
def main_page():
return render_template('index.html')
@app.route('/html/<template>')
def get_html_template(template):
print("request for %s template" % template)
......@@ -104,6 +105,7 @@ def get_html_template(template):
except TemplateNotFound:
abort(404)
@app.route('/amqp_msg_list')
def amqp_msg():
......@@ -141,11 +143,10 @@ def configuration():
# else:
# return ""
@app.route('/upload', methods=['POST'])
def upload():
if request.method == 'POST':
if 'file' not in request.files:
......@@ -182,41 +183,6 @@ def upload():
return redirect("/", code=302)
# @app.route('/send_msg/<name>')
# def send_message(name):
# if name == 'start':
# publish_event(channel, MsgTestSuiteStart())
# elif name == 'finish':
# publish_event(channel, MsgTestSuiteFinish())
# elif name == 'report':
# publish_event(channel, MsgPrivacyGetStatus())
# elif name == 'analyze':
# publish_event(channel, MsgPrivacyAnalyze())
# elif name == 'config':
# publish_event(channel, MsgPrivacyGetConfiguration())
# else:
# return "KO"
# return "OK"
# @app.route('/clear_console')
# def clear_console():
# amqp_listener.clear_messages()
# return "ok"
# @app.route('/clear_report')
# def clear_verdict():
# amqp_listener.clear_verdict()
# return "ok"
# @app.route('/upload', methods=['GET', 'POST'])
# def upload_file():
# if request.method == 'POST':
# f = request.files['the_file']
# f.save('./tmp/demo.pcap')
if __name__ == '__main__':
print("Start App listening on port 8080")
socketio.run(app, port=8080)
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