📝 Update docs and examples for Response Model with Return Type Annotations, and update runtime error (#5873)

This commit is contained in:
Sebastián Ramírez authored and GitHub committed 2023-01-10 16:22:47 +00:00
1 parent 6b83525ff4
commit fb8e9083f4
18 files changed
+757 -1

No files matched your search

@@ -0,0 +1,9 @@
from fastapi import FastAPI
from fastapi.responses import RedirectResponse
app = FastAPI()
@app.get("/teleport")
async def get_teleport() -> RedirectResponse:
return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")