Initial commit

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-12-31 13:36:22 +01:00
commit 931652c494
78 changed files with 46976 additions and 0 deletions

View 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]))