Merry99 commited on
Commit
b18773a
Β·
1 Parent(s): a880a75

add method on /health

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -223,8 +223,11 @@ def on_startup() -> None:
223
 
224
  print("[Startup] MuscleCare Space μ‹œμž‘ μ™„λ£Œ")
225
 
 
 
 
226
 
227
- @app.get("/health", methods=["GET", "HEAD"])
228
  def health_check() -> dict:
229
  """
230
  μ‹œμŠ€ν…œ ν—¬μŠ€μ²΄ν¬ API
 
223
 
224
  print("[Startup] MuscleCare Space μ‹œμž‘ μ™„λ£Œ")
225
 
226
+ @app.head("/health")
227
+ async def health_head():
228
+ return None # HEADλŠ” λ°”λ””κ°€ ν•„μš” μ—†μœΌλ―€λ‘œ None λ°˜ν™˜
229
 
230
+ @app.get("/health")
231
  def health_check() -> dict:
232
  """
233
  μ‹œμŠ€ν…œ ν—¬μŠ€μ²΄ν¬ API