feat: add dedicated account settings page
This commit is contained in:
@@ -1777,6 +1777,8 @@ class TelegramScraperRequestHandler(BaseHTTPRequestHandler):
|
||||
|
||||
if path == "/":
|
||||
return self.serve_file(WEBUI_DIR / "index.html", "text/html; charset=utf-8")
|
||||
if path == "/settings":
|
||||
return self.serve_file(WEBUI_DIR / "settings.html", "text/html; charset=utf-8")
|
||||
if path == "/viewer":
|
||||
return self.serve_file(WEBUI_DIR / "viewer.html", "text/html; charset=utf-8")
|
||||
if path in {"/swagger", "/swigger", "/docs"}:
|
||||
@@ -2007,6 +2009,8 @@ class TelegramScraperRequestHandler(BaseHTTPRequestHandler):
|
||||
|
||||
if path == "/":
|
||||
return self.serve_file(WEBUI_DIR / "index.html", "text/html; charset=utf-8", head_only=True)
|
||||
if path == "/settings":
|
||||
return self.serve_file(WEBUI_DIR / "settings.html", "text/html; charset=utf-8", head_only=True)
|
||||
if path == "/viewer":
|
||||
return self.serve_file(WEBUI_DIR / "viewer.html", "text/html; charset=utf-8", head_only=True)
|
||||
if path in {"/swagger", "/swigger", "/docs"}:
|
||||
|
||||
Reference in New Issue
Block a user