Coverage for docs_src/response_model/tutorial003_03.py: 100%
6 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-08-08 03:53 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-08-08 03:53 +0000
1from fastapi import FastAPI 1abcde
2from fastapi.responses import RedirectResponse 1abcde
4app = FastAPI() 1abcde
7@app.get("/teleport") 1abcde
8async def get_teleport() -> RedirectResponse: 1abcde
9 return RedirectResponse(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ") 1abcde