Created
May 12, 2024 14:15
-
-
Save 2S1one/ae629c8ed5dae82fcf0621a184729ce2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI | |
from fastapi.responses import RedirectResponse | |
app = FastAPI() | |
@app.get("/") | |
async def redirector(destination: str): | |
return RedirectResponse(destination) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment