Aditya Adaki commited on
Commit
3e127a1
·
1 Parent(s): 8242a88

Add root endpoint with API info

Browse files
Files changed (1) hide show
  1. flask_app.py +17 -0
flask_app.py CHANGED
@@ -93,6 +93,23 @@ def image_to_base64(img_array):
93
  return base64.b64encode(buffer).decode("utf-8")
94
 
95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  @app.route("/health", methods=["GET"])
97
  def health_check():
98
  """Health check endpoint"""
 
93
  return base64.b64encode(buffer).decode("utf-8")
94
 
95
 
96
+ @app.route("/", methods=["GET"])
97
+ def index():
98
+ """Root endpoint with API info"""
99
+ return jsonify(
100
+ {
101
+ "service": "DCRM Analysis API",
102
+ "version": "1.0.0",
103
+ "endpoints": {
104
+ "GET /health": "Health check",
105
+ "POST /analyze": "Full DCRM analysis with AI",
106
+ "POST /extract-curves": "Extract curves only (no AI)",
107
+ },
108
+ "docs": "https://github.com/YOUR_REPO/README.md",
109
+ }
110
+ )
111
+
112
+
113
  @app.route("/health", methods=["GET"])
114
  def health_check():
115
  """Health check endpoint"""