Spaces:
Sleeping
Sleeping
Commit
·
2f6f454
1
Parent(s):
3271545
route
Browse files
app.py
CHANGED
|
@@ -35,6 +35,17 @@ def _decode_uploaded_image(file_storage):
|
|
| 35 |
return img
|
| 36 |
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
@app.post("/api/v1/finger-quality")
|
| 39 |
def finger_quality():
|
| 40 |
"""
|
|
|
|
| 35 |
return img
|
| 36 |
|
| 37 |
|
| 38 |
+
@app.get("/")
|
| 39 |
+
def root():
|
| 40 |
+
return jsonify({
|
| 41 |
+
"status": "ok",
|
| 42 |
+
"message": "Finger Quality API is running",
|
| 43 |
+
"endpoints": ["/api/v1/finger-quality"]
|
| 44 |
+
}), 200
|
| 45 |
+
|
| 46 |
+
@app.get("/health")
|
| 47 |
+
def health():
|
| 48 |
+
return "OK", 200
|
| 49 |
@app.post("/api/v1/finger-quality")
|
| 50 |
def finger_quality():
|
| 51 |
"""
|