from fastapi import FastAPI from starlette.responses import Response app = FastAPI() @app.get("/legacy/") def get_legacy_data(): data = """
Apply shampoo here.
You'll have to use soap here. """ return Response(content=data, media_type="application/xml")