Move article link route to

This commit is contained in:
Edward Betts 2023-11-25 19:58:58 +00:00
parent be4db13179
commit b6cc79291b

View file

@ -257,7 +257,7 @@ def get_best_hit(title: str, hits: list[Hit]) -> tuple[Hit, dict[str, typing.Any
raise NoGoodHit raise NoGoodHit
@app.route("/<path:url_title>", methods=["GET", "POST"]) @app.route("/link/<path:url_title>", methods=["GET", "POST"])
def article_page(url_title: str) -> str | Response: def article_page(url_title: str) -> str | Response:
"""Article page.""" """Article page."""
from_title = url_title.replace("_", " ").strip() from_title = url_title.replace("_", " ").strip()