Enable new endpoint for posting results
Change-Id: I3cded7a8ef9182af19f62b053fe8594b7b3feeae
diff --git a/edge-monitoring/edge_monitoring_server.py b/edge-monitoring/edge_monitoring_server.py
index 2d0a9ed..4b935c6 100755
--- a/edge-monitoring/edge_monitoring_server.py
+++ b/edge-monitoring/edge_monitoring_server.py
@@ -208,6 +208,7 @@
@app.route('/edges', methods=['POST'])
+@app.route('/testresults', methods=['POST'])
def create_or_update_edge():
if not request.json:
abort(400)
@@ -238,6 +239,7 @@
@app.route('/edges/<string:name>', methods=['DELETE'])
+@app.route('/testresults/<string:name>', methods=['DELETE'])
def delete_edge(name):
print("delete edge request " + name)
result = False