from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"message": "Hello World! Service is running!"} @app.get("/health") def health(): return {"status": "ok", "service": "running"} @app.post("/review") def review(data: dict): return { "comments": [ { "file_path": "test.py", "line_number": 1, "comment_text": "This looks good! Emergency service is working." } ] }