From e78ab97615a95fd9e76ca75dabedbeb61d23c8e1 Mon Sep 17 00:00:00 2001 From: Yashu Date: Tue, 24 Mar 2026 12:22:16 +0530 Subject: [PATCH] feat: add health check endpoint and improve landing page footer --- backend/app/main.py | 7 +++++++ frontend/app/page.tsx | 12 +++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/backend/app/main.py b/backend/app/main.py index f48d10b..444bce2 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -42,6 +42,13 @@ async def startup_event(): logger.error(f"Knowledge base initialization failed: {result['message']}") + +@app.get("/health", tags=["Health"]) +async def health_check(): + """Health check endpoint to verify the API is running correctly.""" + return {"status": "ok", "app": "VCell AI Backend", "version": "1.0.0"} + + # CORS setup app.add_middleware( CORSMiddleware, diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index ede5909..f6b480b 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -177,7 +177,17 @@ export default function LandingPage() { {/* Footer */} );