Spaces:
Sleeping
Sleeping
| """ | |
| Simple FastAPI test that mirrors index.py structure but without database imports. | |
| """ | |
| from fastapi import FastAPI | |
| from fastapi.middleware.cors import CORSMiddleware | |
| app = FastAPI(title="InnSight-AI API Test", version="1.0.0") | |
| app.add_middleware( | |
| CORSMiddleware, | |
| allow_origins=["*"], | |
| allow_credentials=True, | |
| allow_methods=["*"], | |
| allow_headers=["*"], | |
| ) | |
| async def root(): | |
| return {"status": "ok", "message": "Simple FastAPI works"} | |
| async def health(): | |
| return {"status": "healthy", "service": "simple-test"} | |