fix: Restqdrant
Browse files
app.py
CHANGED
@@ -11,6 +11,23 @@ app = FastAPI()
|
|
11 |
data_importer = DataImporter()
|
12 |
agent = LLMCaller()
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
@app.get("/v1")
|
16 |
def greet_json():
|
|
|
11 |
data_importer = DataImporter()
|
12 |
agent = LLMCaller()
|
13 |
|
14 |
+
@app.get("/")
|
15 |
+
def root():
|
16 |
+
"""Root endpoint - Hugging Face checks this"""
|
17 |
+
return {
|
18 |
+
"message": "PAN-SEA Travel Planning API is running",
|
19 |
+
"status": "healthy",
|
20 |
+
"timestamp": datetime.utcnow().isoformat()
|
21 |
+
}
|
22 |
+
|
23 |
+
@app.get("/health")
|
24 |
+
def health_check():
|
25 |
+
"""Health check endpoint"""
|
26 |
+
return {
|
27 |
+
"status": "healthy",
|
28 |
+
"timestamp": datetime.utcnow().isoformat(),
|
29 |
+
"service": "PAN-SEA Travel Planning API"
|
30 |
+
}
|
31 |
|
32 |
@app.get("/v1")
|
33 |
def greet_json():
|