yanielbf commited on
Commit
a9498aa
·
1 Parent(s): 450591f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -4
main.py CHANGED
@@ -42,7 +42,5 @@ def get_text():
42
  return {"text": content}
43
 
44
  @app.get("/")
45
- def read_root():
46
- url = app.url_path_for("docs")
47
- response = RedirectResponse(url=url)
48
- return response
 
42
  return {"text": content}
43
 
44
  @app.get("/")
45
+ async def redirect_to_docs():
46
+ return RedirectResponse(url="/docs")