From 850171c9e9833b18fceb5a4cae7c994818f21ad8 Mon Sep 17 00:00:00 2001 From: WassCodeur Date: Tue, 9 Dec 2025 19:41:42 +0000 Subject: [PATCH] Add GitHub and YouTube redirection endpoints; update social media links --- main.py | 6 ++++++ templates/base.html | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index a367edf..f93c90c 100644 --- a/main.py +++ b/main.py @@ -1851,6 +1851,12 @@ async def privacy(request: Request): url="https://meet.google.com/mnt-zerh-oqw", status_code=301 ) ) +app.get("/github")( + lambda: RedirectResponse(url="https://github.com/python-togo", status_code=301) +) +app.get("/youtube")( + lambda: RedirectResponse(url="https://www.youtube.com/@PythonTogo", status_code=301) +) if __name__ == "__main__": diff --git a/templates/base.html b/templates/base.html index 9f1ca42..51cfbaa 100644 --- a/templates/base.html +++ b/templates/base.html @@ -153,7 +153,7 @@

{{ t.get('footer-contact-title','Contact') }}