소스 검색

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()