from fastapi import APIRouter from fastapi.responses import HTMLResponse # ========================== # đ ī¸ Router Setup # ========================== router = APIRouter( prefix="/help", tags=["Information"] ) # ========================== # âšī¸ API Info Endpoint # ========================== @router.get("/") def get_api_info(): """ Returns general information about the API and available endpoints. No authentication required. """ return { "requested_by": "Guest", "api_name": "Easy Tools API", "developer": "Sameer Banchhor", "version": "1.0.0", "available_tools": [ "/image (Compressor & BG Remover)", "/pdf (Merge & Rotate)", "/drive (File Storage & Aria2)", "/security (Password Generator)", "/server-status (System Monitor)" ], "message": "Use the /help/ui endpoint to access the visual dashboard.", "developer_info": "Created by Sameer Banchhor, Data Scientist (MSc in System Design, Kalyan PG College).", "git_link": "https://github.com/sameerbanchhor-git" } # ========================== # đ§ Central Hub UI # ========================== @router.get("/ui", response_class=HTMLResponse) async def help_ui(): html_content = """