Akash4911 commited on
Commit
314114c
·
1 Parent(s): b267a90

Add root route for HF app page

Browse files
Files changed (1) hide show
  1. main.py +4 -0
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