INNER CODE UNIT · Python
read_root
rainmanjam/jobspy-api · app/main.py:179
def read_root():
return {
"message": "Welcome to JobSpy Docker API!",
"docs_url": "/docs",
"api_root": "/api/v1",
"health_check": "/health"
}
# Add health check endpoint with minimal logging
@app.get("/health")
async def health_check():
"""Health check endpoint for monitoring systems"""
# Only log health checks in debug mode
if logger.isEnabledFor(logging.DEBUG):
logger.debug("Health check requested")
return {"status": "healthy"}
@app.get("/api/v1/search_jobs")