Spaces:
Sleeping
Sleeping
add endpoint root
Browse files
app.py
CHANGED
|
@@ -64,6 +64,21 @@ def clob_json(obj) -> str:
|
|
| 64 |
return json.dumps(obj, separators=(",", ":"), ensure_ascii=False)
|
| 65 |
|
| 66 |
# ----- ์๋ํฌ์ธํธ -----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
@app.get("/health")
|
| 68 |
def health():
|
| 69 |
try:
|
|
|
|
| 64 |
return json.dumps(obj, separators=(",", ":"), ensure_ascii=False)
|
| 65 |
|
| 66 |
# ----- ์๋ํฌ์ธํธ -----
|
| 67 |
+
@app.get("/")
|
| 68 |
+
def root():
|
| 69 |
+
"""๋ฃจํธ ์๋ํฌ์ธํธ - ์๋ฒ ์ํ ํ์ธ"""
|
| 70 |
+
return {
|
| 71 |
+
"status": "running",
|
| 72 |
+
"message": "MuscleCare API Server",
|
| 73 |
+
"version": "1.0.0",
|
| 74 |
+
"endpoints": {
|
| 75 |
+
"health": "/health",
|
| 76 |
+
"docs": "/docs",
|
| 77 |
+
"upload_state": "/upload_state",
|
| 78 |
+
"upload_logs": "/upload_logs"
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
@app.get("/health")
|
| 83 |
def health():
|
| 84 |
try:
|