from fastapi import FastAPI app = FastAPI(title="Simple API") @app.get("/") def root(): return {"message": "API is running"} @app.get("/health") def health(): return {"status": "online"}