Преглед на файлове

Add /health endpoint to server (#5136)

Co-authored-by: openhands <openhands@all-hands.dev>
Robert Brennan преди 1 година
родител
ревизия
a3977621ed
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      openhands/server/listen.py

+ 5 - 0
openhands/server/listen.py

@@ -94,6 +94,11 @@ app.add_middleware(
 )
 
 
+@app.get('/health')
+async def health():
+    return 'OK'
+
+
 security_scheme = HTTPBearer()