Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -862,9 +862,10 @@ async def get_categories():
|
|
| 862 |
|
| 863 |
@app.get("/documentation", response_class=HTMLResponse)
|
| 864 |
async def documentation():
|
| 865 |
-
|
|
|
|
| 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"""
|