Initial commit
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
16
5g-uulm-network-monitoring/local/app.py
Normal file
16
5g-uulm-network-monitoring/local/app.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from flask import Flask, request
|
||||
import sys
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/upload', methods=['POST'])
|
||||
def handle_post_request():
|
||||
# Print the received POST request data
|
||||
print(request)
|
||||
print(request.data)
|
||||
|
||||
# Respond with a 200 status code
|
||||
return '', 200
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=int(sys.argv[1]))
|
||||
Reference in New Issue
Block a user