Spaces:
Sleeping
Sleeping
Commit
·
1fcabf8
1
Parent(s):
dd449bb
Dummy endpoint
Browse files
app.py
CHANGED
|
@@ -111,6 +111,10 @@ def download_excel():
|
|
| 111 |
except Exception as e:
|
| 112 |
return jsonify({'error': str(e)}), 500
|
| 113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
if __name__ == '__main__':
|
| 115 |
app.run(debug=True, host="0.0.0.0", port=7860)
|
| 116 |
|
|
|
|
| 111 |
except Exception as e:
|
| 112 |
return jsonify({'error': str(e)}), 500
|
| 113 |
|
| 114 |
+
@app.route('/api/health', methods=['GET'])
|
| 115 |
+
def health_check():
|
| 116 |
+
return jsonify({'status': 'running', 'message': 'Flask app is up and running'}), 200
|
| 117 |
+
|
| 118 |
if __name__ == '__main__':
|
| 119 |
app.run(debug=True, host="0.0.0.0", port=7860)
|
| 120 |
|