From 09b53a20f99bafae52817893d0c88339b7c20e0f Mon Sep 17 00:00:00 2001 From: thevickypedia Date: Thu, 7 Mar 2024 09:15:57 -0600 Subject: [PATCH] Source `favicon` and `apple-touch-icon` from GitHub Remove favicon references from code --- pystream/routers/basics.py | 12 ------------ pystream/templates/index.html | 4 ++-- pystream/templates/land.html | 4 ++-- pystream/templates/list.html | 4 ++-- pystream/templates/logout.html | 6 ++++-- pystream/templates/session.html | 6 ++++-- pystream/templates/unauthorized.html | 6 ++++-- 7 files changed, 18 insertions(+), 24 deletions(-) diff --git a/pystream/routers/basics.py b/pystream/routers/basics.py index f5ff8b6..e4cbf8d 100644 --- a/pystream/routers/basics.py +++ b/pystream/routers/basics.py @@ -9,18 +9,6 @@ router = APIRouter() -@router.get(path="/favicon.ico", include_in_schema=False) -async def get_favicon() -> FileResponse: - """Gets the favicon.ico and adds to the API endpoint. - - Returns: - FileResponse: - Uses FileResponse to send the favicon.ico to support the robinhood script's robinhood.html. - """ - if os.path.isfile('favicon.ico'): - return FileResponse('favicon.ico') - - @router.get("/", include_in_schema=False) async def root(request: Request) -> RedirectResponse: """Reads the root request to render HTMl page. diff --git a/pystream/templates/index.html b/pystream/templates/index.html index ab4d2a2..40f74ca 100644 --- a/pystream/templates/index.html +++ b/pystream/templates/index.html @@ -10,8 +10,8 @@ - - + +