Files
fastapi__fastapi/docs_src/custom_response/tutorial006_py39.py
T
2025-12-17 21:41:43 +01:00

10 lines
199 B
Python

from fastapi import FastAPI
from fastapi.responses import RedirectResponse
app = FastAPI()
@app.get("/typer")
async def redirect_typer():
return RedirectResponse("https://typer.tiangolo.com")