Skip to content

Commit

Permalink
Add wake-up endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
zzkW35 committed Feb 14, 2024
1 parent 561e752 commit 358fd82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/aidapp/api/routers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ async def calculate(input_values: InputValues):
logging.error(traceback.format_exc())
raise HTTPException(status_code=500, detail="Internal server error")
return JSONResponse(content=aidapp_output._asdict(), status_code=200)


@router.get("/wake-up/")
async def wake_up():
"""Endpoint to check if the server is running."""
return JSONResponse(content={"message": "Server is running"}, status_code=200)

0 comments on commit 358fd82

Please sign in to comment.