OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
feat: Implement a new health check API endpoint for the Frontend app
Mike Pawlowskid3c8d0b80aec
diff --git a/Makefile b/Makefileindex de191dfdd..9cebd1b8f 100644--- a/Makefile+++ b/Makefile@@ -982,6 +982,7 @@ status: ## Show container statushealth: ## Check health of all services@echo "$(PURPLE)Health check:$(NC)"+ @echo "$(CYAN)Frontend:$(NC) $$(curl -s http://localhost:3000/health 2>/dev/null || echo '$(RED)Not responding$(NC)')"@echo "$(CYAN)Backend:$(NC) $$(curl -s http://localhost:8000/health 2>/dev/null || echo '$(RED)Not responding$(NC)')"@echo "$(CYAN)Langflow:$(NC) $$(curl -s http://localhost:7860/health 2>/dev/null || echo '$(RED)Not responding$(NC)')"@echo "$(CYAN)OpenSearch:$(NC) $$(curl -s -k -u admin:$${OPENSEARCH_PASSWORD} https://localhost:9200 2>/dev/null | jq -r .tagline 2>/dev/null || echo '$(RED)Not responding$(NC)')"diff --git a/frontend/app/health/route.ts b/frontend/app/health/route.tsnew file mode 100644index 000000000..35adb415d--- /dev/null+++ b/frontend/app/health/route.ts@@ -0,0 +1,5 @@+import { NextResponse } from "next/server";++export async function GET() {+ return NextResponse.json({ status: "ok" }, { status: 200 });+}