This commit is contained in:
4
main.py
4
main.py
@@ -31,5 +31,9 @@ def convert_heic_to_jpg():
|
|||||||
return f"Error converting file: {e}", 500
|
return f"Error converting file: {e}", 500
|
||||||
return "Invalid file format", 400
|
return "Invalid file format", 400
|
||||||
|
|
||||||
|
@app.route('/health', methods=['GET'])
|
||||||
|
def health_check():
|
||||||
|
return "OK", 200
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(host='0.0.0.0', port=5000, debug=False)
|
app.run(host='0.0.0.0', port=5000, debug=False)
|
||||||
Reference in New Issue
Block a user