10 lines
199 B
Python
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")
|