diff --git a/api_server.py b/api_server.py index 6e85c92..67d4d25 100644 --- a/api_server.py +++ b/api_server.py @@ -709,6 +709,40 @@ def is_local_request(request: Request) -> bool: return True return False + +@app.get("/", response_class=HTMLResponse) +async def index() -> HTMLResponse: + """Returns a simple landing page with service description and GitHub link.""" + html = """ + + + + + Pyrogram Bridge + + + +

Pyrogram Bridge

+

A Telegram-to-RSS/JSON bridge that exposes Telegram channel posts as RSS feeds and JSON API endpoints.

+

github.com/vvzvlad/pyrogram-bridge

+ +""" + return HTMLResponse(content=html) + + @app.get("/html/{channel}/{post_id}", response_class=HTMLResponse) @app.get("/post/html/{channel}/{post_id}", response_class=HTMLResponse) @app.get("/html/{channel}/{post_id}/{token}", response_class=HTMLResponse)