Skip to content

Commit fba5011

Browse files
author
yihuiwen
committed
add health method
1 parent 533f07b commit fba5011

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lightx2v/server/api/server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def _setup_routes(self):
2929
def redirect_to_docs():
3030
return RedirectResponse(url="/docs")
3131

32+
@self.app.get("/health")
33+
def health_check():
34+
return {"status": "ok"}
35+
3236
api_router = create_api_router()
3337
self.app.include_router(api_router)
3438

0 commit comments

Comments
 (0)