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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -862,9 +862,10 @@ async def get_categories():
862
 
863
  @app.get("/documentation", response_class=HTMLResponse)
864
  async def documentation():
865
- with open("docs.html") as f:
 
866
  return f.read()
867
-
868
  @app.get("/", response_class=HTMLResponse)
869
  async def root():
870
  """Root endpoint with API documentation"""
 
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():
871
  """Root endpoint with API documentation"""