Ankit19102004 commited on
Commit
ef4a71a
·
1 Parent(s): 793af67

add_health_check

Browse files
Files changed (1) hide show
  1. honeypot_api.py +10 -0
honeypot_api.py CHANGED
@@ -168,6 +168,16 @@ def send_callback(session_id):
168
  # HONEYPOT ENDPOINT
169
  # ============================
170
 
 
 
 
 
 
 
 
 
 
 
171
  @app.route("/honeypot/message", methods=["POST"])
172
  def honeypot_message():
173
 
 
168
  # HONEYPOT ENDPOINT
169
  # ============================
170
 
171
+ @app.route("/", methods=["GET"])
172
+ def health_check():
173
+ return jsonify({
174
+ "status": "running",
175
+ "service": "Honeypot API",
176
+ "endpoints": {
177
+ "/honeypot/message": "POST - Send message for analysis"
178
+ }
179
+ })
180
+
181
  @app.route("/honeypot/message", methods=["POST"])
182
  def honeypot_message():
183