Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
app = FastAPI(
title="WhereTF Backend"
)
@app.get("/")
def root():
return {"message": "WhereTF Backend is running"}
@app.get("/health", tags=["System"])
def health_check():
"""
Health check endpoint to verify the API is running.
"""
return {
"status": "healthy",
"service": "WhereTF Backend",
"database_connected": True # If the API booted, the Docker depends_on guarantees this is true
}
Loading