LogicDataSolutions commited on
Commit
c3c488e
·
verified ·
1 Parent(s): 29e60df

Update ping.py

Browse files

added @app .head("/ping")

Files changed (1) hide show
  1. ping.py +1 -0
ping.py CHANGED
@@ -6,6 +6,7 @@ def add_ping_route(app: FastAPI, call_langflow):
6
  Calls the provided call_langflow function with a test message to verify it's working.
7
  """
8
  @app.get("/ping")
 
9
  def ping():
10
  """Simple health check that also calls the chat function."""
11
  try:
 
6
  Calls the provided call_langflow function with a test message to verify it's working.
7
  """
8
  @app.get("/ping")
9
+ @app.head("/ping")
10
  def ping():
11
  """Simple health check that also calls the chat function."""
12
  try: