InnSight-Backend / api /simple.py
jackonthemike's picture
feat: Sync backend updates including AI Revenue Analyst
cef0de3
"""
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=["*"],
)
@app.get("/")
@app.get("/api/simple")
async def root():
return {"status": "ok", "message": "Simple FastAPI works"}
@app.get("/api/simple/health")
async def health():
return {"status": "healthy", "service": "simple-test"}