from fastapi import FastAPI app = FastAPI() @app.get("/") async def read_root(): return {"message": "Hello, world!"} @app.get("/test") async def read_root(): return {"message": "This is testing endpoint"}