mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 11:25:18 +00:00
add get endpoint for container status
This commit is contained in:
parent
95344c7083
commit
34378384da
1 changed files with 5 additions and 2 deletions
|
|
@ -107,11 +107,14 @@ async def handle_webhook(background_tasks: BackgroundTasks, request: Request):
|
|||
status_code=status.HTTP_200_OK, content=jsonable_encoder({"message": "webhook triggerd successfully"})
|
||||
)
|
||||
|
||||
|
||||
@router.get("/")
|
||||
async def root():
|
||||
return {"status": "ok"}
|
||||
|
||||
def start():
|
||||
app = FastAPI(middleware=[Middleware(RawContextMiddleware)])
|
||||
app.include_router(router)
|
||||
uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("PORT", "3000")))
|
||||
|
||||
if __name__ == "__main__":
|
||||
start()
|
||||
start()
|
||||
|
|
|
|||
Loading…
Reference in a new issue