from fastapi import FastAPI, Request from app.main import app as main_app app = FastAPI() @app.get("/") def greet_json(): return {"Hello": "World!"} # Mount the main app app.mount("/api", main_app)