diff --git a/main.py b/main.py index 6ddbede..45744c0 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,9 @@ app = FastAPI( title=settings.APP_NAME, version=settings.APP_VERSION, description="AI-Powered Resume & Job Match Hub - Helping job seekers find the perfect match", - openapi_url="/openapi.json" + openapi_url="/openapi.json", + docs_url="/docs", + redoc_url="/redoc" ) # Configure CORS @@ -35,8 +37,15 @@ async def root(): "service": settings.APP_NAME, "version": settings.APP_VERSION, "description": "AI-Powered Resume & Job Match Hub", - "documentation": "/docs", - "health_check": "/health" + "message": "FastAPI application is running successfully", + "endpoints": { + "documentation": "/docs", + "alternative_docs": "/redoc", + "openapi_schema": "/openapi.json", + "health_check": "/health", + "debug_info": "/debug", + "api_base": "/api/v1" + } } @@ -47,4 +56,25 @@ async def health_check(): "status": "healthy", "service": settings.APP_NAME, "version": settings.APP_VERSION + } + + +@app.get("/debug") +async def debug_info(): + """Debug endpoint to verify FastAPI is running""" + import os + return { + "message": "FastAPI application is running", + "service": settings.APP_NAME, + "version": settings.APP_VERSION, + "python_version": os.sys.version, + "available_endpoints": [ + "/", + "/health", + "/debug", + "/docs", + "/redoc", + "/openapi.json", + "/api/v1/*" + ] } \ No newline at end of file