Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -30,6 +30,11 @@ app.include_router(llm_chat_router)
|
|
30 |
app.include_router(scraping_router)
|
31 |
app.include_router(electronics_router)
|
32 |
|
|
|
|
|
|
|
|
|
|
|
33 |
if __name__ == "__main__":
|
34 |
import uvicorn
|
35 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|
30 |
app.include_router(scraping_router)
|
31 |
app.include_router(electronics_router)
|
32 |
|
33 |
+
# Add to main.py
|
34 |
+
@app.get("/routes")
|
35 |
+
async def get_routes():
|
36 |
+
return {"routes": [{"path": route.path, "name": route.name} for route in app.routes]}
|
37 |
+
|
38 |
if __name__ == "__main__":
|
39 |
import uvicorn
|
40 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|