Update health endpoint to include API name in response
This commit is contained in:
parent
2e7ff1df5a
commit
55992df074
2
main.py
2
main.py
@ -36,7 +36,7 @@ app.include_router(frontend_router)
|
|||||||
@app.get("/health", status_code=200)
|
@app.get("/health", status_code=200)
|
||||||
def health():
|
def health():
|
||||||
"""Health check endpoint"""
|
"""Health check endpoint"""
|
||||||
return {"status": "healthy"}
|
return {"message": f"{settings.PROJECT_NAME} is healthy"}
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user