Merry99 commited on
Commit
abbfca0
ยท
1 Parent(s): 1c094f3

add endpoint root

Browse files
Files changed (1) hide show
  1. app.py +15 -0
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: