Skip to content

Commit fa27caa

Browse files
committed
Merge branch 'remotecontrolling' into post_processing_saurabh
2 parents 6ff9899 + 4c4c45c commit fa27caa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

fileserver/file_server.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,16 @@ def upload_file():
6060
resp.status_code = 201
6161
return resp
6262

63+
@app.route('/namelist', methods=['POST'])
64+
def print_filelist():
65+
print("CLIENT ID:" + request.form.get("client_id", "") +" have these FILES:" + request.form.get("file_list", []) )
66+
resp = jsonify({'message' : 'File List Printed'})
67+
resp.status_code = 200
68+
return resp
69+
70+
71+
72+
73+
6374
if __name__ == '__main__':
6475
app.run(host='0.0.0.0', port=5000,debug=True)

0 commit comments

Comments
 (0)