Spaces:
Sleeping
Sleeping
Add root route for HF app page
Browse files
main.py
CHANGED
|
@@ -99,6 +99,10 @@ app = Flask(__name__)
|
|
| 99 |
# Enable CORS for cross-origin requests from the app
|
| 100 |
CORS(app)
|
| 101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
@app.route('/health', methods=['GET'])
|
| 103 |
def health_check():
|
| 104 |
return jsonify({"status": "ok"}), 200
|
|
|
|
| 99 |
# Enable CORS for cross-origin requests from the app
|
| 100 |
CORS(app)
|
| 101 |
|
| 102 |
+
@app.route('/', methods=['GET'])
|
| 103 |
+
def root():
|
| 104 |
+
return jsonify({"message": "GatePass backend running"}), 200
|
| 105 |
+
|
| 106 |
@app.route('/health', methods=['GET'])
|
| 107 |
def health_check():
|
| 108 |
return jsonify({"status": "ok"}), 200
|