FrnklnWrld commited on
Commit
5d864e9
·
verified ·
1 Parent(s): cdc7872

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -860,11 +860,12 @@ async def get_categories():
860
  "description": "Categories for spiritual and personal development journeys"
861
  }
862
 
863
- @app.get("/documentation", response_class=HTMLResponse)
 
864
  async def documentation():
865
- docs_path = os.path.join(os.path.dirname(__file__), "docs.html")
866
- with open(docs_path) as f:
867
- return f.read()
868
 
869
  @app.get("/", response_class=HTMLResponse)
870
  async def root():
 
860
  "description": "Categories for spiritual and personal development journeys"
861
  }
862
 
863
+ # Abdullah bot app.py
864
+ @app.get("/documentation")
865
  async def documentation():
866
+ from fastapi.responses import RedirectResponse
867
+ return RedirectResponse("https://aero-woad.vercel.app/abdullah-docs.html")
868
+
869
 
870
  @app.get("/", response_class=HTMLResponse)
871
  async def root():