From 33aa705ef956a6c3f0cd1f228eecdabfbf767963 Mon Sep 17 00:00:00 2001 From: Deeman Date: Tue, 24 Feb 2026 10:11:07 +0100 Subject: [PATCH] feat(routes): add /market-score route + legacy redirect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subtask 2/6: Route handler in public blueprint, 301 redirect from /market-score → /en/market-score for bookmarks without lang prefix. Co-Authored-By: Claude Opus 4.6 --- web/src/padelnomics/app.py | 4 ++++ web/src/padelnomics/public/routes.py | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/web/src/padelnomics/app.py b/web/src/padelnomics/app.py index 75c9f78..cbf1c1a 100644 --- a/web/src/padelnomics/app.py +++ b/web/src/padelnomics/app.py @@ -292,6 +292,10 @@ def create_app() -> Quart: async def legacy_suppliers(): return redirect("/en/suppliers", 301) + @app.route("/market-score") + async def legacy_market_score(): + return redirect("/en/market-score", 301) + # ------------------------------------------------------------------------- # Blueprint registration # ------------------------------------------------------------------------- diff --git a/web/src/padelnomics/public/routes.py b/web/src/padelnomics/public/routes.py index f84bb36..94b9eb4 100644 --- a/web/src/padelnomics/public/routes.py +++ b/web/src/padelnomics/public/routes.py @@ -59,6 +59,11 @@ async def about(): return await render_template("about.html") +@bp.route("/market-score") +async def market_score(): + return await render_template("market_score.html") + + @bp.route("/imprint") async def imprint(): lang = g.get("lang", "en")