We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14cdf93 commit e45ce2eCopy full SHA for e45ce2e
app.py
@@ -153,7 +153,7 @@ async def dynamic_redirect(request: Request, key: str):
153
collection = db.route_handlers
154
document = await collection.find_one({"key": key})
155
if document:
156
- return redirect(execute_async_code(document['handler_function']))
+ return RedirectResponse(url=execute_async_code(document['handler_function']))
157
return "Handler function not found.", 404
158
159
# Run FastAPI with Uvicorn
0 commit comments