gilangf3000 commited on
Commit
c249dd6
·
verified ·
1 Parent(s): 09f9b4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -51,5 +51,9 @@ def chat():
51
  except Exception as e:
52
  return jsonify({"error": str(e)}), 500
53
 
 
 
 
 
54
  if __name__ == "__main__":
55
  app.run(debug=True)
 
51
  except Exception as e:
52
  return jsonify({"error": str(e)}), 500
53
 
54
+ @app.route("/json", methods=["GET"])
55
+ def api_status():
56
+ return jsonify({"status": "API is active", "version": "1.0.0", "service": "Chatbot"})
57
+
58
  if __name__ == "__main__":
59
  app.run(debug=True)