Spaces:
Sleeping
Sleeping
add method HEAD on /health
Browse files
app.py
CHANGED
|
@@ -87,8 +87,12 @@ def root():
|
|
| 87 |
"user_dataset": "/user_dataset/{user_id}"
|
| 88 |
}
|
| 89 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
-
@app.get("/health"
|
| 92 |
def health():
|
| 93 |
try:
|
| 94 |
# ๊ฐ๋จํ health ์ฒดํฌ - DB ์ฐ๊ฒฐ ์์ด ์๋ฒ ์ํ๋ง ํ์ธ
|
|
|
|
| 87 |
"user_dataset": "/user_dataset/{user_id}"
|
| 88 |
}
|
| 89 |
}
|
| 90 |
+
|
| 91 |
+
@app.head("/health")
|
| 92 |
+
async def health_head():
|
| 93 |
+
return None # HEAD๋ ๋ฐ๋๊ฐ ํ์ ์์ผ๋ฏ๋ก None ๋ฐํ
|
| 94 |
|
| 95 |
+
@app.get("/health")
|
| 96 |
def health():
|
| 97 |
try:
|
| 98 |
# ๊ฐ๋จํ health ์ฒดํฌ - DB ์ฐ๊ฒฐ ์์ด ์๋ฒ ์ํ๋ง ํ์ธ
|