Merry99 commited on
Commit
3570179
ยท
1 Parent(s): e2b68a6

add method HEAD on /health

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ def root():
88
  }
89
  }
90
 
91
- @app.get("/health")
92
  def health():
93
  try:
94
  # ๊ฐ„๋‹จํ•œ health ์ฒดํฌ - DB ์—ฐ๊ฒฐ ์—†์ด ์„œ๋ฒ„ ์ƒํƒœ๋งŒ ํ™•์ธ
 
88
  }
89
  }
90
 
91
+ @app.get("/health", methods=["GET", "HEAD"])
92
  def health():
93
  try:
94
  # ๊ฐ„๋‹จํ•œ health ์ฒดํฌ - DB ์—ฐ๊ฒฐ ์—†์ด ์„œ๋ฒ„ ์ƒํƒœ๋งŒ ํ™•์ธ