from fastapi import FastAPI app = FastAPI() @app.get("/") def greet_json(): return {"Hello": "World!"} @app.get("/test") def greet_json(): return {"Hello": "Redmind!"}